ShowLocalHistoEqualizeDlg Example for C++ 5.0 and later
void CDialogs::OnShowLocalHistoEqualizeDlg()
{
int nRet;
m_pRasterColorDlg->RectangleWidth= (short) m_LeadRasterView.GetRaster().GetBitmapWidth()/ 2;
m_pRasterColorDlg->RectangleHeight= (short) m_LeadRasterView.GetRaster().GetBitmapHeight ()/ 2;
m_pRasterColorDlg->ColorSpace= YUV_SPACE;
m_pRasterColorDlg->UIFlags = LOCALHISTOEQUALIZE_SHOW_PREVIEW |
LOCALHISTOEQUALIZE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
nRet= m_pRasterColorDlg->ShowLocalHistoEqualizeDlg ((long) this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
{
m_pRasterProc->LocalHistoEqualize (m_LeadRasterView.GetRaster (),
m_pRasterColorDlg->RectangleWidth,
m_pRasterColorDlg->RectangleHeight,
m_pRasterColorDlg->XExtension,
m_pRasterColorDlg->YExtension,
(short)m_pRasterColorDlg->ColorSpace,
(short)m_pRasterColorDlg->SmoothSize
);
}
}