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:
with OR combination of one additional flag:
|
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 Professional.
Sample:
MFC, Timing, Filters
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 ); ... |