ShowRemapIntensityDlg example for C++ Builder
void __fastcall TForm1::ShowRemapIntensityDlg1Click(TObject *Sender)
{
L_INT i;
L_INT nRet;
LEADDlgColor1->Channel = CHANNEL_RED;
LEADDlgColor1->DlgFlags = DLG_REMAPINTENSITY_SHOW_PREVIEW |
DLG_REMAPINTENSITY_SHOW_TOOL_ZOOMLEVEL;
LEADDlgColor1->LEADImage = LEADImage1;
LEADDlgColor1->LEADDlgService = LEADDlgService1;
nRet = LEADDlgColor1->ShowRemapIntensityDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
for ( i= 0; i < (L_INT)LEADDlgColor1->RemapIntensityTableSize; i ++ )
{
LEADImage1->RemapTable[i]= LEADDlgColor1->RemapIntensityTable [i];
}
LEADImage1->RemapIntensity ( LEADDlgColor1->Channel );
}
}