Basic4Android PNG压缩

发布于 2024-12-09 21:42:19 字数 304 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁的年少不轻狂 2024-12-16 21:42:19

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文