Skip navigation.
 
mlChanging the background of a 1 bit bitmap?
FROM : Glen Simmons
DATE : Mon Oct 04 18:25:06 2004

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

Related mailsAuthorDate
mlChanging the background of a 1 bit bitmap? Glen Simmons Oct 4, 18:25
mlRe: Changing the background of a 1 bit bitmap? R. Scott Thompson Oct 4, 19:39
mlRe: Changing the background of a 1 bit bitmap? Glen Simmons Oct 4, 19:58
mlRe: Changing the background of a 1 bit bitmap? R. Scott Thompson Oct 4, 20:27
mlRe: Changing the background of a 1 bit bitmap? Glen Simmons Oct 4, 21:11