FreePlaneBend Example for C++ 5.0 and later

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

m_pRasterProc->PutUserLUTCurveSize(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->FreePlaneBend(m_LeadRasterView.GetRaster (), 200, RGB(255, 0, 0), FILL_CLR +  FPB_VERT);

m_pRasterProc->Release();