ShowRemapHueDlg Example for C++ 5.0 and later
void CDialog::OnShowRemapHueDlg()
{
int nRet;
m_pRasterColorDlg->UIFlags = REMAPHUE_SHOW_PREVIEW |
REMAPHUE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
nRet= m_pRasterColorDlg->ShowRemapHueDlg((long) this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
{
m_pRasterProc->RemapHueTablesSize= m_pRasterColorDlg->RemapHueTablesSize;
{
m_pRasterProc->MaskTable [i]= m_pRasterColorDlg->MaskTable[i];
m_pRasterProc->HTable [i]= m_pRasterColorDlg->HueTable[i];
m_pRasterProc->STable [i]= m_pRasterColorDlg->SaturationTable[i];
m_pRasterProc->VTable [i]= m_pRasterColorDlg->ValueTable[i];
}
m_pRasterProc->RemapHue(m_LeadRasterView.GetRaster (),true, true, false, false );
}
}