Re: Transparency with PNG on NSImageView
Re: Transparency with PNG on NSImageView
- Subject: Re: Transparency with PNG on NSImageView
- From: Damien Cooke <email@hidden>
- Date: Fri, 6 Feb 2009 09:24:56 +1030
I create a new NSImageView and load it with the image then display the
NSImageView
Damien
On 06/02/2009, at 9:13 AM, Randall Meadows wrote:
On Feb 5, 2009, at 3:28 PM, Damien Cooke wrote:
Hi All,
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.
How are you drawing the top image?
"We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about."
-- Albert Einstein
_______________________________________________
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