简体   繁体   English

Android-失去PNG图片OnDraw的质量

[英]Android - Losing the quality of PNG image OnDraw

I have picture (particle picture, not moving, just single png), I preapared on photoshop, when On Android device, when you click the screen particle picture shows up, it is a bitmap on a sufraceview (drawed by OnDraw method), but it is terribly losing its quality 我有图片(粒子图片,不动,只有一个png),我在photoshop上有先兆,当在Android设备上,当您单击屏幕上的粒子图片显示时,它是sufraceview(通过OnDraw方法绘制)上的位图,但是它正在严重失去其质量

Any suggestions (See the test photoshop image and real screenshot from device) ? 有什么建议(请参阅设备上的测试Photoshop图像和真实屏幕截图)?

Thanks 谢谢

区别

高质量保存png(24)

Not sure if this is the same issue, but I was getting a blurry png image too which I reference from an ImageView in my layout xml file. 不知道这是否是相同的问题,但是我也得到了模糊的png图像,我是从布局xml文件中的ImageView引用的。 It is a 24 bit image also, but it wasn't until I saved the image with a larger width and height that it actually looked good. 它也是一个24位图像,但是直到我以更大的宽度和高度保存图像后,它实际上才看起来不错。 I went from a width of 88 to 250 and now the image looks great. 我从88的宽度变为250,现在图像看起来很棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM