LAnnotation::GetRgnHandle

#include "ltwrappr.h"

virtual L_INT LAnnotation::GetRgnHandle(phRgn, pXForm=NULL)

Creates a region from the specified annotation object and retrieves a handle to that region.

Parameters

HRGN * phRgn

Address of the variable to be updated with the handle to the region, if the function is successful.

pRGNXFORM 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 TOP_LEFT.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

You can create regions from the following annotation objects:

When working with the RGNXFORM structure in this function, consider the following:

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

For an example, refer to LAnnotation::GetArea.

Help Version 20.0.2020.4.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help