ZigZag example for Visual C++
int iXCenter, iYCenter;
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
iXCenter = m_LeadRasterView.GetRaster().GetBitmapWidth() / 2;
iYCenter = m_LeadRasterView.GetRaster().GetBitmapHeight() / 2;
m_pRasterProc->ZigZag(m_LeadRasterView.GetRaster(), 50, 1000, 10, 0, iXCenter, iYCenter, 0, FILL_RPT | ZG_POND);
m_pRasterProc->Release();