FreeHandWave Example for C++ 5.0 and later

ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);

m_pRasterProc->AmplitudesCount(4);

m_pRasterProc->PutUserLUTCurveX(0,0);
m_pRasterProc->PutUserLUTCurveY(0,0);

m_pRasterProc->PutUserLUTCurveX(1,3);
m_pRasterProc->PutUserLUTCurveY(1,10);

m_pRasterProc->PutUserLUTCurveX(2,9);
m_pRasterProc->PutUserLUTCurveY(2,-10);

m_pRasterProc->PutUserLUTCurveX(3,12);
m_pRasterProc->PutUserLUTCurveY(3,0);

m_pRasterProc->GetCurvePoints(GUB_LINEAR);

m_pRasterProc->FreeHandWave(m_LeadRasterView.GetRaster(), 100,10, 0 , 0, FILL_RPT |DIS_FRQ);
m_pRasterProc->Release();