ImageGear for C and C++ on Windows v19.6 - Updated
IG_load_size_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Load Functions > IG_load_size_get

This function obtains the load size dimensions.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_load_size_get(
   LPAT_DIMENSION lpWidth,
   LPAT_DIMENSION lpHeight
);

Arguments:

Name Type Description
lpWidth LPAT_DIMENSION Pointer to variable of type AT_DIMENSION to receive the load size width.
lpHeight LPAT_DIMENSION Pointer to variable of type AT_DIMENSION to receive the load size height.

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_DIMENSION nWid, nHi;   /* Will receive current load size settings */
AT_ERRCOUNT nErrCount = IG_load_size_get ( &nWid, &nHi );

Remarks:

To reset ImageGear so that it will default to normal resolution, set both parameters to 0 using IG_load_size_set.