Re: NSImageView antialiasing when scaling up images
Re: NSImageView antialiasing when scaling up images
- Subject: Re: NSImageView antialiasing when scaling up images
- From: Mike Abdullah <email@hidden>
- Date: Wed, 3 Dec 2008 01:11:54 +0000
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 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.
<Picture 59.png> <Picture 58.png>
How can I set the NSImageView to disable this effect?
OSX 10.5.5
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden