Skip navigation.
 
mlRe: NSImageView setImageScaling:NSScaleToFit blurs image
FROM : Mike Abdullah
DATE : Tue Mar 04 20:52:04 2008

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 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 setting to turn off this default blur or is there another 
> way I can zoom display a small image (QCView?) but without the blur? 
> The net effect of what we need is a sharp pixellated image not one 
> where the pixellated block edges are smeared.
>
> OSX 10.5.2, Xcode 3.0, ObjC 2.0
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

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