ColorReplace example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
REPLACECOLOR ColorReplace; /*replaced color structure information*/
/* Load a bitmap at its own bits per pixel */
LEADImage1->Load("image1.cmp", 0, 1, 1 );
/* Change the red color by rotating its hue 90 degree */
ColorReplace.crColor= RGB(200, 0, 35);
ColorReplace.uFuzziness= 100;
LEADImage1->ColorReplace(9000, 0, 0, &ColorReplace, 1);
}