VTable example for C++Builder
/*This example considers that the image you are working with is 24 bpp.*/
{
L_INT i;
L_UINT uVal;
AnsiString Msg;
LEADImage1->RemapHueTablesSize = 256;
/*This example remaps the "value" of each color to one half its original*/
for ( i= 0; i < 256; i ++ )
{
LEADImage1->VTable [i]= (i/2);
uVal= LEADImage1->VTable [i];
Msg= Msg + IntToStr(uVal)+ " ";
}
ShowMessage (Msg);
LEADImage1->RemapHue(False, False, False, True);
}