• 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: NSImage query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage query


  • Subject: Re: NSImage query
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 3 Mar 2004 12:43:54 +0100

On 3. Mar 2004, at 11:01, Mark Woollard wrote:

I have a bmp loaded into an NSImage instance. The image has one of its colours, full intensity green, set to represent transparency. How would I go about rendering the image into a view honouring the transparency?

I think you would have to loop through all the pixels and set the alpha component according to wether the pixel is green or not.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSImage query (From: Mark Woollard <email@hidden>)

  • Prev by Date: subclassing NSArrayController
  • Next by Date: Re: subclassing NSArrayController
  • Previous by thread: NSImage query
  • Next by thread: NSPopUpButton content bindings - item enable state
  • Index(es):
    • Date
    • Thread