Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage query



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.