Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I want to specify white color as transparent color of image, in other words, white pixel of image will not be draw on screen, Can i use IImage to do this?

No, you'll need to use the standard transparency color, which on 16 bit displays is magenta, defined as RGB_MASK_COLOR.
In order to draw an IImage with transparency, you'll first need to call IIMAGE_SetParm() and specify the raster op as AEE_RO_TRANSPARENT.

No, you'll need to use the standard transparency color, which on 16 bit displays is magenta, defined as RGB_MASK_COLOR.
In order to draw an IImage with transparency, you'll first need to call IIMAGE_SetParm() and specify the raster op as AEE_RO_TRANSPARENT.

That's true for Windows bitmaps. For other formats, where transparency is part of the file format, the transparency color is not fixed at magenta, nor is it necessary to change the raster op.

That's true for Windows bitmaps. For other formats, where transparency is part of the file format, the transparency color is not fixed at magenta, nor is it necessary to change the raster op.