Skip navigation.
 
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image
FROM : Jens Alfke
DATE : Tue Mar 04 21:59:07 2008

On 4 Mar '08, at 12:02 PM, R.L. Grigg wrote:

> Mike, yes that is something we tried but it seems to have no effect 
> on the blurring.


You have to set the interpolation at the moment the image is being 
drawn, i.e. just before the NSImage draw/composite call. You can't do 
this using a regular NSImageView; it draws the image for you and has 
no ability to configure the interpolation.

You can either make a custom NSView and do the drawing in its -
drawRect: method; or you can create a scaled-up NSImage, draw the 
small NSImage into it using the appropriate interpolation, and then 
put the scaled-up NSImage into the NSImageView.

—Jens

Related mailsAuthorDate
mlNSImageView setImageScaling:NSScaleToFit blurs image R.L. Grigg Mar 4, 20:13
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image Mike Abdullah Mar 4, 20:52
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image R.L. Grigg Mar 4, 21:02
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image Jens Alfke Mar 4, 21:59
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image R.L. Grigg Mar 4, 22:44