我從網上獲取圖像並在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