GDI+Desktop Help

linum

Active Member
Licensed User
I was reading the GDI+Desktop Documentation and noticed some mentioning of transparency in images.

My question: Is there a simple way to load an existing BMP image and use this lib to turn all the cWhite color of the image as transparent and then save the image?

My only intention is to set the cWhite color as transparent.

I know this question has been asked before but know with this new lib I wanted to know if it's possible.


Thanks;
 

agraham

Expert
Licensed User
Longtime User
A full discussion is more complicated that you would think because Basic4ppc colours do not support the alpha channel whereas the BitmapEx in GDI+Desktop does, but not for all of the operations. One day I might make a coherent attempt to make BitmapEx and DrawerEx fully 32 bit colour aware but it needs thinking about, and more experience than I presently possess in using GDI+ image operations, as it means exposing some advanced colour handling stuff. GDI+ is quite powerful so can get quite complicated.

However ImageLib, ImageLibEx and GDI+Desktop all support transparency in the Drawer so you can draw your bitmap onto another specifying that white is treated as the transparent colour. This is a different transparency to that achieved by alpha channels.
 
Top