#include "ltwrappr.h"
virtual L_INT LBitmap::GetRgnContourPoints (pXForm, ppPoints, puSize, uFlags)
pRGNXFORM pXForm; |
pointer to a coordinate-translation structure |
POINT ** ppPoints; |
pointer to a pointer |
L_UINT * puSize; |
pointer to a variable to be updated |
L_UINT uFlags; |
flag |
Returns the contour coordinates of a region.
Parameter | Description | |
pXForm | 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. | ||
ppPoints | Pointer to a pointer to be updated with an array that contains the coordinate points of the contour for the specified region. A memory buffer for this array is allocated by the function. When the array is no longer needed, the user should free it by calling the GlobalFreePtr macro. | |
puSize | Address of a variable to be updated with the number of points in the buffer. | |
uFlags | Flag that indicates the required contour points. Possible values are: | |
Value | Meaning | |
RGNCONTOUR_ALL | [0x0000] Gets all region contour points ignoring their order. | |
RGNCONTOUR_OUTSIDE | [0x0001] Gets the outside region contour points only in an ordered way that allows you to reconstruct the outside region shape from these points. |
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.
Required DLLs and Libraries
LTIMGEFX For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
L_INT LBitmap__GetRgnContourPointsExample(LBitmap *pLeadBitmap)
{
L_INT nRet;
RECT rcRect;
POINT * pPoints;
L_UINT uSize;
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);
if(nRet !=SUCCESS)
return nRet;
nRet =pLeadBitmap->GetRgnContourPoints(NULL, &pPoints, &uSize,0);
if(nRet !=SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.