IBasicBitmapOps::AdjustBrightness (Compact 2013)
3/26/2014
This feature is being deprecated for this release. Refer to this component: Windows Imaging Component.
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 |