IBasicBitmapOps::AdjustBrightness (Windows CE 5.0)
This method adjusts the brightness of a bitmap image.
HRESULT AdjustBrightness( FLOAT percent);
[in] A FLOAT value used to adjust the brightness of a bitmap image.
The value for percent must fall in the range -1 <= percent <= 1.
The pixel intensity value is between 0.0 and 1.0, so the brightness adjustment is described by the following equation.
New Intensity = Old Intensity + percent
A positive value of the percent parameter causes the image to become brighter; a negative value makes the image darker.
This method returns S_OK if successful.
This method returns E_INVALIDARG if percent < -1, or if percent > 1.
OS Versions: Windows CE 5.0 and later.
Link Library: Imaging.lib.
Send Feedback on this topic to the authors