ShowSpherizeDlg Example for C++ 5.0 and later
void CDialogs::OnShowSpherizeDlg()
{
int nRet;
m_pRasterImageEfxDlg->UIFlags = SPHERIZE_SHOW_PREVIEW |
SPHERIZE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
nRet= m_pRasterImageEfxDlg->ShowSpherizeDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
m_pRasterProc->Spherize(m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->Value,
m_pRasterImageEfxDlg->CenterX,
m_pRasterImageEfxDlg->CenterY,
m_pRasterImageEfxDlg->FillColor,
m_pRasterImageEfxDlg->ImageEffectFlags
);
}
}