ImageGear for C and C++ on Linux v18.8 - Updated
IG_dspl_PPM_correct_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_PPM_correct_get

This function returns the current value of options which specify either to use the image resolution or the image dimension to calculate the aspect ratio.

Declaration:

 
Copy Code
AT_ERRCOUNT  ACCUAPI  IG_dspl_PPM_correct_get(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [OUT] LPBOOL lpbEnable
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of group in from which to get options.
LpbEnable LPBOOL Pointer to where to get the current value of option PPMCorrect.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Example:

 
Copy Code
HIGEAR            hIGear;       /* HIGEAR handle of image  */ 
DWORD           nGrpID;      /* display group identifier    */
BOOL            bPPMEnable;    /* PPM corect flag value  */
 ...
IG_dspl_PPM_correct_get ( hIGear, nGrpID, &bPPMEnable );
 ...