Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridCellPicture and transparent bmp Collapse All
Subject Author Date
Adam Keadey Jul 31, 2007 - 9:54 AM

I’m using the CExtGridCellPicture and loading it using CExtBitmap.

I want the image to be transparent on a color.

Technical Support Jul 31, 2007 - 11:28 AM

You can make some color transparent by using the code like as follows:

// We want to make RGB(255,0,255) transparent
m_bmpNormal.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
Please note that if you are using a 32-bpp bitmap, then you have to do nothing. Bitmaps with alpha channel are fully supported in Prof-UIS.