FreeRadBend Example for C++ 5.0 and later

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

int CenterX = m_LeadRasterView.GetRaster ().GetBitmapWidth () / 2;
int CenterY = m_LeadRasterView.GetRaster().GetBitmapHeight ()/ 2;

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->FreeRadBend( m_LeadRasterView.GetRaster (), 200, CenterX, CenterY,RGB(255, 0, 0), FILL_CLR + FILL_ROT);

m_pRasterProc->Release();