Re: NSImageView antialiasing when scaling up images

2008-12-02 Thread Jonathon Kuo
Totally awesome! Thank you! On Dec 2, 2008, at 5:11 PM, Mike Abdullah wrote: You'll want to subclass NSImageView and implement your own - drawRect: method. Call super's implementation, but beforehand, do something like: [[NSGraphicsContext currentContext] set setImageInterpolation: NSImag

Re: NSImageView antialiasing when scaling up images

2008-12-02 Thread Mike Abdullah
You'll want to subclass NSImageView and implement your own -drawRect: method. Call super's implementation, but beforehand, do something like: [[NSGraphicsContext currentContext] set setImageInterpolation: NSImageInterpolationNone]; On 2 Dec 2008, at 23:45, Jonathon Kuo wrote: I have some t

NSImageView antialiasing when scaling up images

2008-12-02 Thread Jonathon Kuo
I have some tiny images (4x3, etc) that I'm displaying in a large NSImageView. I set the view with setImageScaling:NSScaleToFit. This works, but instead of getting well-defined block 'pixels', I get sort of a 'shower-door' gradient effect within each pixel block. <> <> How can I set the