Available in the LEADTOOLS Imaging toolkit. |
SetRgnColorRGBRange example for C++ 4.0 and later
//This example sets a region corresponding to all colors that
//have an rgb that includes red but no green and no blue
void CColorReplaceDlg::OnButton6()
{
COLORREF crLo;
COLORREF crHi;
crLo = RGB(1, 0, 0);
crHi = RGB(255, 0, 0);
m_Lead.SetRgnColorRGBRange(crLo, crHi, L_RGN_SET);
m_Lead.SetRgnFrameType(RGNFRAME_ANIMATED);
}