ShowIntensityDetectDlg Example for C++ 5.0 and later
void CDialogs::OnShowIntensityDetectDlg()
{
int nRet;
m_pRasterColorDlg->UIFlags = INTENSITYDETECT_SHOW_PREVIEW |
INTENSITYDETECT_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->IntensityChannel = IDB_ CHANNEL_RED;
m_pRasterColorDlg->PutInColor(RGB(0,0,0));
m_pRasterColorDlg->PutOutColor(RGB(0,0,255));
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
nRet = m_pRasterColorDlg->ShowIntensityDetectDlg ((long) this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
{
m_pRasterProc->.IntensityDetect(m_LeadRasterView.GetRaster(), m_pRasterColorDlg->Low, m_pRasterColorDlg->High, RGB(0,0,0), RGB(0,0,255), IDB_CHANNEL_RED);
}
}