SetRgnColorRGBRange example for C++ Builder

//This example sets a region corresponding to all colors that
//have an rgb that includes red but no green and no blue
   ::OLE_COLOR rgbLo;
   ::OLE_COLOR rgbHi;

   rgbLo= RGB(1, 0, 0);
   rgbHi= RGB(255, 0, 0);
   LEADRasterView1->Raster->SetRgnColorRGBRange(rgbLo, rgbHi, L_RGN_SET);
   LEADRasterView1->RgnFrameType = RGNFRAME_ANIMATED;