Re: Turning pure white pixels, transparant
Re: Turning pure white pixels, transparant
- Subject: Re: Turning pure white pixels, transparant
- From: "Sean McBride" <email@hidden>
- Date: Wed, 8 Jun 2005 13:37:29 -0400
- Organization: Rogue Research
On 2005-06-07 15:50, Theodore H. Smith said:
>If I have some gifs, loaded by [NSImage imageNamed], and I want to
>state that the perfect white (FF,FF,FF) pixels are transparent, how
>do I do this?
>
>Currently, the white pixels are drawing over stuff.
>
>I searched within NSImage docs, but couldn't see anything.
I don't think Cocoa has any kind of automatic solution for you. You
could use NSBitmapImageRep (not NSImage!) then use the -bitmapData
method to get the pixels, change them yourself, then build a new
NSBitmapImageRep.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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