Partager via


IBasicBitmapOps::AdjustGamma

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method adjusts the gamma of a bitmap image.

Syntax

HRESULT AdjustGamma(
  FLOAT gamma
);

Parameters

  • gamma
    [in] A FLOAT value used to adjust the gamma of a bitmap image.

    The gamma adjustment is described by the following equation.

    New Intensity = Old Intensity ^ gamma
    

    A value for gamma that is greater than 1 makes the image darker. A value for gamma that is less than 1 makes the image brighter.

Return Value

This method returns S_OK if successful.

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

See Also

Reference

IBasicBitmapOps