ImageGear for C and C++ on Windows v19.7 - Updated
IG_ARTX_text_bounds_get
API Reference Guide > ArtX Component API Reference > ArtX Component Objects Reference > HIG_ARTX_TEXT > IG_ARTX_text_bounds_get

This function queries the annotation bounding rectangle. The value is independent of text wrapping and alignment, and is not the same as the visible rectangle on the screen. Use IG_ARTX_mark_hittest_bounds_get to get the device-dependent bounds.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_ARTX_text_bounds_get(
        HIG_ARTX_TEXT hMark,
        LPAT_RECTANGLE lpRect
);

Arguments:

Name Type Description
hMark HIG_ARTX_TEXT Annotation handle.
lpRect LPAT_RECTANGLE Pointer to storage that is overwritten with a copy of the current bounding rectangle.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.