• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Turning pure white pixels, transparant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Turning pure white pixels, transparant (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Developer Transition Kit
  • Next by Date: PyObjC on Intel
  • Previous by thread: Turning pure white pixels, transparant
  • Next by thread: Panther support in Universal Binaries?
  • Index(es):
    • Date
    • Thread