Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在开发一个 Flash 项目,该项目允许用户上传图像以打印出衬衫。为了定位图像,我目前将图像的大小缩放到 1/7 或 1/5,但图像像素化并且质量下降。
有没有什么方法可以让图像更平滑,即使它被缩小了很多?
谢谢,
我能想到的所有图像类都有一个smooth属性。当然,, Bitmap,Image和BitmapImage做。如果您使用的是,则需要通过访问Loader来获取原始文件。设置,它应该完全符合您的要求。BitmapLoader.contentsmooth = true
smooth
Bitmap
Image
BitmapImage
Loader
Loader.content
smooth = true
请记住,平滑算法不会太快,如果大规模执行,可能会导致速度变慢。