I have a UIImageView showing a image that is larger than it’s frame.
It’s set to rescale the image to fit it’s frame. But, the image is scaled with a low quality filter.
I’ve read here that this is caused by it using a low interpolation quality.
How can I get it’s context to CGContextSetInterpolationQuality to kCGInterpolationHigh?
UIImageView does not offer this functionality, though UIImage has an undocumented
_imageScaledToSize:interpolationQuality:method if I remember correctly.Since UIImageView draws directly to the display, subclassing and overriding
drawRect:is no option (thanks to Prody for pointing this out). The only option I see is to create a custom UIView subclass with a customdrawrect:implementation.