次の方法で共有


IBasicBitmapOps::AdjustGamma (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

IBasicBitmapOps