我从网上获取图像并在UIImage中显示它,但首先我缩小了它。问题是,如果图像是黑白的,结果非常糟糕,大量白线穿过图像。缩放黑白图像
我已经尝试了很多变化,但我没有看到任何改善,总是同样的质量差的结果。有小费吗?
一些我尝试过的东西(还记得我的工作没有的UIImageView):
http://iosdevelopertips.com/graphics/how-to-scale-an-image-using-an-objective-c-category.html
How to scale a UIImageView proportionally?
What's the easiest way to resize/optimize an image size with the iPhone SDK?
http://www.iphonedevsdk.com/forum/iphone-sdk-development/5204-resize-image-high-quality.html
你试过什么样的变化? –
向我们展示一些代码。 – zaph
假设您的图像是每像素1位,您是否能够在缩放之前将其转换为灰度(8 BPP或更好)? – cbranch