ImageGear for C and C++ on Windows v20.1 - Updated
IG_load_rect_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Load Functions > IG_load_rect_get

This function obtains the current load rectangle, as set in the last call to IG_load_rect_set.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_load_rect_get(
   LPAT_PIXPOS lpX,
   LPAT_PIXPOS lpY,
   LPAT_DIMENSION lpWidth,
   LPAT_DIMENSION lpHeight
);

Arguments:

Name Type Description
lpX LPAT_PIXPOS Pointer to variable of type AT_PIXPOS to receive X coordinate of load rectangle.
lpY LPAT_PIXPOS Pointer to AT_PIXPOS variable to receive Y coordinate of load rectangle.
lpWidth LPAT_DIMENSION Pointer to variable of type AT_DIMENSION to receive width of load rectangle.
lpHeight LPAT_DIMENSION Pointer to variable of type AT_DIMENSION to receive height of load 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.

Sample:

None

Example:

 
Copy Code
AT_PIXPOS nXLoadCrop,        /* X coordinate of load crop rectangle  */
nYLoadCrop;                    /* Y coordinate  */
AT_DIMENSION  
    nWidCrop,                /* Width of load crop rectangle  */
    nHiCrop;                /* Height   */
AT_ERRCOUNT nErrcount;        /* Returned count of errors */
nErrcount = IG_load_rect_get ( &nXLoadCrop, &nYLoadCrop, &nWidCrop, &nHiCrop );

Is this page helpful?
Yes No
Thanks for your feedback.