ShowWaveShearDlg Example for C++ 5.0 and later
void CDialogs::OnShowWaveShearDlg()
{
int nRet;
m_pRasterImageEfxDlg->UIFlags = WAVESHEAR_SHOW_PREVIEW |
WAVESHEAR_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
nRet= m_pRasterImageEfxDlg->ShowWaveShearDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
m_pRasterProc->AmplitudesCount= m_pRasterImageEfxDlg->AmplitudesCount;
for (int i= 0; i <m_pRasterImageEfxDlg->AmplitudesCount; i ++ )
{
m_pRasterProc->PutAmplitudes(i,m_pRasterImageEfxDlg->GetAmplitudes (i));
}
m_pRasterProc->FreeHandShear(m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->ScaleValue,
m_pRasterImageEfxDlg->FillColor,
m_pRasterImageEfxDlg->ImageEffectFlags
);
}
}