Basic4Android PNG压缩
Android 似乎在编译时明显降低了 PNG 文件的质量。
我有一个使用画布对象的应用程序。该过程将画布数据写入尺寸小于画布的 PNG 文件。写入过程根据用户事件重复多次(根据用户可能重复20次)。但每次写入过程之后,图像质量都会变得越来越差,变得像素化。
有什么办法可以关闭或禁用压缩吗?
EditingPartMutable_Bitmap.WriteToStream(out, 100, "PNG")
'quality = 100 didn't worked either
有什么想法吗?
Android seems to visibly reduce the quality of PNG files at compile time.
I have an aplication working with a canvas object. The process writes canvas data over a PNG file which has smaller dimensions than the canvas. Writing process repeats according to user events more than once (maybe 20 times according to user). But after every writing process, image quality becomes worse and worse.It becomes pixelated.
Is there any way to turn off or disable compression for this?
EditingPartMutable_Bitmap.WriteToStream(out, 100, "PNG")
'quality = 100 didn't worked either
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PNG 是一种无损格式,因此质量设置将被忽略。您所获得的像素化效果一定是由于其他原因造成的。
PNG is a lossless format and as such the quality setting is ignored. The pixelated effect you are getting must be due to another reason.