GetRgnPerimeterLength example for C++ 5.0 and later
int nTop, nBottom, nLeft, nRight ;
CString strMsg;
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
nTop = m_LeadRasterView.GetRaster().GetBitmapHeight() / 3;
nBottom = m_LeadRasterView.GetRaster().GetBitmapHeight() * 2 / 3;
nLeft = m_LeadRasterView.GetRaster().GetBitmapWidth() / 3;
nRight = m_LeadRasterView.GetRaster().GetBitmapWidth() * 2 / 3;
m_LeadRasterView.GetRaster().SetRgnEllipse(nLeft, nTop, nRight, nBottom, L_RGN_SET);
m_pRasterProc->GetRgnPerimeterLength(m_LeadRasterView.GetRaster());
strMsg.Format(TEXT("Perimeter Length = %d"),m_pRasterProc->RgnPerimeterLength);
m_pRasterProc->Release();