Re: Plotting icons into NSImage
Re: Plotting icons into NSImage
- Subject: Re: Plotting icons into NSImage
- From: Daniel Dalquen <email@hidden>
- Date: Wed, 2 May 2007 23:06:10 +0200
On 02.05.2007, at 21:54, Uli Kusterer wrote:
Just a guess: Have you tried doing an NSRectFill() with clearColor
(transparentColor? whatever...) before drawing? It might just be
that the image starts out opaque and when you draw it just
composites on that?
Well, what I finally ended up doing was compositing two images
together - the icon ontop of a white square.
Otherwise, is there any reason why you can't use NSWorkspace's
iconForFile: ?
Yes: I like to write a lot of unnecessary code :P
It appears that the icons are rendered slightly nicer with the C-
Code, but there are problems for small icon sizes (no idea why). Is
there a better way of resizing the NSImage received from NSWorkspace
than setSize on the image?
Thanks!
Cheers from Switzerland
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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