Available in the LEADTOOLS Imaging toolkit. |
TransparentColor example for C++ 4.0 and later
This example sets white as a transparent color; then loads a test image and paints it.
m_Lead1.SetAutoRepaint(FALSE);
// Enable transparency
m_Lead1.SetBitmapEnableTransparency(TRUE);
// Make white the transparent color
m_Lead1.SetBitmapTransparentColor(RGB(255, 255, 255));
m_Lead1.Load("d:\\temp\\ctest.bmp", 0, 0, 1);
m_Lead1.ForceRepaint();