Computes the length of the perimeter of a region.
virtual L_INT LBitmap::GetRgnPerimeterLength (pXForm, puLength, uFlags = 0)
Pointer to an RGNXFORM structure that LEADTOOLS uses to translate between display coordinates and bitmap coordinates.
If you specify NULL in this parameter, the scalar fields default to 1, the offsets default to 0, and the view perspective defaults to the bitmap's view perspective.
Address of a variable to be updated with the perimeter length of the region. The length is expressed in pixels.
Reserved for future use. Must be 0.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function works only on bitmaps having a region. If a bitmap does not have a region the function returns the error: Not Initialized.
To update a status bar or detect a user interrupt during execution of this function, refer to LBase::EnableStatusCallback.
This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This function supports signed data images.
L_INT LBitmap__GetRgnPerimeterLengthExample(LBitmap *pLeadBitmap)
rcRect.top = pLeadBitmap->GetHeight ()/3;
rcRect.bottom = pLeadBitmap->GetHeight ()*2/3;
rcRect.left = pLeadBitmap->GetWidth ()/3;
rcRect.right = pLeadBitmap->GetWidth ()*2/3;
nRet =pLeadBitmap->Region()->SetRgnEllipse (&rcRect);
nRet =pLeadBitmap->GetRgnPerimeterLength(NULL, &uPerimeter);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries