SetRgnMagicWand example for C++ Builder

void __fastcall TForm1::LEADRasterView1MouseUp (TObject *Sender,
      short Button, short Shift, float x, float y)
{
    LEADRasterView1->Raster->SetRgnMagicWand (x, y, 10, L_RGN_SET);
    LEADRasterView1->RgnFrameType = RGNFRAME_ANIMATED;
}