ChangeHueSatInt method (Main Control)
Builder Syntax |
int ChangeHueSatInt(int nHue, int nSaturation, int nIntensity, LPHUESATINTDATA pHsiData, unsigned uHsiDataCount); |
Delphi Syntax |
Function ChangeHueSatInt (nHue: L_INT; nSaturation: L_INT; nIntensity: L_INT; pHsiData: LPHUESATINTDATA; uHsiDataCount: L_UINT): L_INT; |
Overview |
Refer to Correcting Colors |
Remarks
Changes the hue, saturation and brightness of all or specified colors in the image.
This method combines the basic functionality found in the Hue, Saturation, and Intensity methods. In addition, special options can be specified in the HUESATINTDATA record (structure).
To change the overall hue, saturation and intensity all at one time, pass Nil (NULL) for pHsiData and 0 for uHsiDataCount. To adjust the parameters separately, or to make adjustments in successive passes, use the structures and pass 0 for the nHue, nSaturation, and nIntensity parameters.
For detailed information about using the ranges in the HUESATINTDATA structure, refer to HUESATINTDATA.
Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also