次の方法で共有


IBasicBitmapOps::AdjustGamma (Compact 2013)

3/26/2014

This feature is being deprecated for this release. Refer to this component: Windows Imaging Component.

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

See Also

Reference

IBasicBitmapOps