Plane 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->Plane(m_LeadRasterView.GetRaster(), CenterX, CenterY, 0, CenterY, CenterX, -1,0,25,0,100, 20000, RGB(255,0,0), RGB(0,0,0), PLANE_RIGHT | PLANE_LEFT | PLANE_FILL_CLR);
m_pRasterProc->Release();