ShowRemapHueDlg example for C++ Builder
void __fastcall TForm1::ShowRemapHueDlg1Click(TObject *Sender)
{
L_INT i;
L_INT nRet;
LEADDlgColor1->DlgFlags = DLG_REMAPHUE_SHOW_PREVIEW |
DLG_REMAPHUE_SHOW_TOOL_ZOOMLEVEL;
LEADDlgColor1->LEADImage = LEADImage1;
LEADDlgColor1->LEADDlgService = LEADDlgService1;
nRet= LEADDlgColor1->ShowRemapHueDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
for ( i= 0; i < (L_INT)LEADDlgColor1->RemapHueTableSize; i ++ )
{
LEADImage1->MaskTable[i]= LEADDlgColor1->RemapHueMaskTable [i];
LEADImage1->HTable[i]= LEADDlgColor1->RemapHueHTable [i];
LEADImage1->STable[i]= LEADDlgColor1->RemapHueSTable [i];
LEADImage1->VTable[i]= LEADDlgColor1->RemapHueVTable [i];
}
LEADImage1->RemapHue ( true, true, false, false );
}
}