On Feb 5, 2009, at 14:28, Damien Cooke wrote:
I have what is probably a stupid problem. In my window I have a background NSImageView and I want to pop another much smaller one on top. The one I am putting on top is a png with transparencies. When I do this I get a rectangular image over my background but what I want to see is only the non transparent parts of my image. I have set the background colour of my image via [image setBackgroundColor: [NSColor clearColor]] but I am perplexed with the spectacular lack of any change.
Make sure you're using the correct mode, probably "source over". The default "copy" mode doesn't do what you might expect with transparency.
FWIW _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com