Available in the LEADTOOLS Imaging toolkit. |
FeatherAlphaBlend example for C++ 5.0 and later
m_Lead2.CreateBitmap (800, 600, 24);
m_Lead2.SetRgnRoundRect(50, 50, 500, 500, 150, 150, L_RGN_SET);
m_Lead3.CreateFadedMask(m_Lead2.GetBitmap(), 60, 20, 3, 0, FADE_DUMPFILL + FADE_NOTRANSPARENCY, 255, RGB(0, 0, 255));
m_Lead2.Load("c:\\temp\\test.cmp", 0, 1, 1);
m_Lead1.FeatherAlphaBlend(0, 0, m_Lead3.GetBitmapWidth(), m_Lead3.GetBitmapHeight(), m_Lead2.GetBitmap(), 0, 0, m_Lead3.GetBitmap());