Loading Bitmaps with Transparency (Newbie)
Loading Bitmaps with Transparency (Newbie)
- Subject: Loading Bitmaps with Transparency (Newbie)
- From: Eric Hon-Anderson <email@hidden>
- Date: Sun, 25 Nov 2001 01:31:55 -0500
I have a large number of bitmap (.bmp) files in which all pixels with a
specific color (red=0, green=255, blue=0) are intended to be
transparent. I can read and display the files themselves just fine with
NSImage, but when drawing or compositing the images, the green is drawn
like any other color would be (no surprise, since I don't know how to
tell the system I want the green to vanish). My question is, what SHOULD
I do to make it vanish? (Given the number of files, I hope you won't
say, "make the images tranparent in Photoshop by hand.")