STable 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 saturation of each color to one half its original*/
for ( i= 0; i < 256; i ++ )
{
LEADImage1->STable[i]= (i/2);
uVal= LEADImage1->STable[i];
Msg= Msg + IntToStr ( uVal )+ " ";
}
ShowMessage ( Msg );
LEADImage1->RemapHue( False, False, True, False );
}