Re: NSImage scaling and ugliness
Re: NSImage scaling and ugliness
- Subject: Re: NSImage scaling and ugliness
- From: Christian Walther <email@hidden>
- Date: Mon, 10 Jul 2006 22:05:42 +0200
Stephen F. Booth wrote:
My code for grabbing the icon looks like:
NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:filename];
[icon setSize:NSMakeSize(16, 16)];
I have tried setting the scalesWhenResized property, with identical
results. The icons that aren't pretty are mainly ones that have no
16x16 representation, but since Finder can display them I assume
there is something I'm not doing.
Looks like the thing you're not doing is
[[NSGraphicsContext currentContext] setImageInterpolation:
NSImageInterpolationHigh];
-Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden