Changing the background of a 1 bit bitmap?
Changing the background of a 1 bit bitmap?
- Subject: Changing the background of a 1 bit bitmap?
- From: Glen Simmons <email@hidden>
- Date: Mon, 4 Oct 2004 11:25:06 -0500
I'm creating an NSImage from some 1 bit bitmap data using the
-[NSBitmapImageRep initWithBitmapDataPlanes:pixelsWide: ...] method
passing NSCalibratedBlackColorSpace so that 1 bits become black pixels
and 0 bits become white pixels. I'd like the 0 bits to become a color
of my choice instead of white. Is there an easy way to do this?
Thanks,
Glen Simmons
_______________________________________________
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