Platform Builder for Microsoft Windows CE 5.0
IBasicBitmapOps::AdjustBrightness
Send Feedback

This method adjusts the brightness of a bitmap image.

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 Values

This method returns S_OK if successful.

This method returns E_INVALIDARG if percent < -1, or if percent > 1.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Imaging.h.
Link Library: Imaging.lib.

See Also

IBasicBitmapOps


Send Feedback on this topic to the authors

Feedback FAQs


Page view tracker