为什么透明图像在颤振中看起来质量较差? [英] Why Transparent Images Look Poor Quality in Flutter?

查看:88
本文介绍了为什么透明图像在颤振中看起来质量较差?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带阴影的png图像。没有不成比例的图像缩放问题,缩放比例取决于纵横比。

I have png images that have drop shadow. There is no unproportional images scaling problem, scaling are according to the aspect ratio.

当我使用 Image.asset()用于将图像放置在手机屏幕上,它们的阴影看上去质量低而不柔和。

When I using Image.asset() for placing images on phone screen, they're and their shadows looks low quality and not soft.

原始图像看起来: http://prnt.sc/p93vo2

Android应用上的图片: https://prnt.sc/p93vz3

Image on Android App: https://prnt.sc/p93vz3

示例图片相同和700x400、96dpi。
您应该看到图像之间的质量差异。
还有一个奇怪的陈述。右侧和底部的阴影密度大于android应用中原始图像的阴影。

Example images are same and 700x400, 96dpi. You should see quality difference between images. There is also a strange stuation. The shadow density on right and bottom side is more than shadow of original image on android app.

我已经尝试过 FilterQuality.high 但没有更改,如何解决?

I've tried FilterQuality.high but no change, how to fix it?

推荐答案

在我的情况下,问题出在配置错误

In my case, the problem was due to a bad configuration of the image resolution system.

完整答案 SO:在以下情况下使用image.asset时图像质量松动颤抖

这篇关于为什么透明图像在颤振中看起来质量较差?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆