IBasicBitmapOps::AdjustContrast (Windows CE 5.0)
This method adjusts the contrast of a bitmap image.
HRESULT AdjustContrast( FLOAT shadow, FLOAT highlight);
[in] A FLOAT value that defines the value for pixels that are currently 0.
[in] A FLOAT value that defines the value for pixels that are currently 1.
This method returns S_OK if successful.
This method returns E_INVALIDARG if shadow > highlight.
This method adjusts the contrast of an image by rescaling the pixel values in the range from 0 to 1 to the new range from shadow to highlight.
The old pixel value 0 is mapped to the new pixel value of shadow and the old pixel value 1 is mapped to the new pixel value of highlight. All other old pixel values are mapped into the new range through linear interpolation.
OS Versions: Windows CE 5.0 and later.
Link Library: Imaging.lib.
Send Feedback on this topic to the authors