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

This function sets the new value of the PPMCorrect option.

Declaration:

 
Copy Code
AT_ERRCOUNT  ACCUAPI  IG_dspl_PPM_correct_set(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] BOOL bEnable
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of group for which to set options.
bEnable BOOL New value for PPMCorrect option. If TRUE then the resolution will be used to calculate the aspect ratio, but if FALSE then the image dimension will be used.

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 */
 ...
IG_dspl_PPM_correct_set ( hIGear, nGrpID, TRUE );
 ...