IBasicBitmapOps::AdjustBrightness
A version of this page is also available for
4/8/2010
This method adjusts the brightness of a bitmap image.
Syntax
HRESULT AdjustBrightness(
FLOAT percent
);
Parameters
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.
Return Value
This method returns S_OK if successful.
This method returns E_INVALIDARG if percent < -1, or if percent > 1.
Requirements
Header | imaging.h |
Library | Imaging.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |