ImageGear for C and C++ on Linux v20.0 - Updated
IG_dspl_antialias_set
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_antialias_set

This function sets new anti-alias settings.

Declaration:

 
Copy Code
AT_ERRCOUNT  ACCUAPI  IG_dspl_antialias_set(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] AT_MODE nAliasFlags,
        [IN] INT nThreshold
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of group in which to set option.
nAliasFlags AT_MODE

New value of AliasMode to set. Possible value is one of the following:

  • IG_DSPL_ANTIALIAS_NONE
  • IG_DSPL_ANTIALIAS_SCALE_TO_GRAY
  • IG_DSPL_ANTIALIAS_PRESERVE_BLACK
  • IG_DSPL_ANTIALIAS_PRESERVE_WHITE

with OR combination of one additional flag:

  • IG_DSPL_ANTIALIAS_SUBSAMPLE
nThreshold INT Specifies display aliasing threshold level (AliasThreshold). Please see Dithering, Anti-Aliasing, and Palette Handling.

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 */
 ...
/* sets scale to gray algorithm with subsampling  */
IG_dspl_antialias_set( hIGear, nGrpID, IG_DSPL_ANTIALIAS_SCALE_TO_GRAY|
IG_DSPL_ANTIALIAS_SUBSAMPLE, 50 );
 ...
Is this page helpful?
Yes No
Thanks for your feedback.