Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
Mike, Jens, I created a NSImageView subclass and call [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationNone] in the overridden -drawRect: method just before invoking [super drawRect:aRect]. It works perfectly!!! I get a clean scaled-up image with no blurring!

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread Jens Alfke
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

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
Mike, yes that is something we tried but it seems to have no effect on the blurring. Thx, Russ On Mar 4, 2008, at 11:52 AM, Mike Abdullah wrote: When you draw the image, have you tried doing [[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationNone] ? Mike. On 4

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread Mike Abdullah
When you draw the image, have you tried doing [[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationNone] ? Mike. On 4 Mar 2008, at 19:13, R.L. Grigg wrote: I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up t

NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up to 640x640. Right now Im using a NSImageView and setImageScaling:NSScaleToFit. This works but some sort of gaussian blur gets applied to the image ruining the analysis. Is there a s