ColorCurveParams structure (gdipluseffects.h)

A ColorCurveParams structure contains members that specify an adjustment to the colors of a bitmap.

The ColorCurve class encompasses eight separate adjustments: exposure, density, contrast, highlight, shadow, midtone, white saturation, and black saturation. You can apply one of those adjustments to a bitmap by following these steps.

  1. Create and initialize a ColorCurveParams structure.
  2. Pass the address of the ColorCurveParams structure to the ColorCurve::SetParameters method of a ColorCurve object.
  3. Pass the address of the ColorCurve object to the Graphics::DrawImage method or to the Bitmap::ApplyEffect method.

Syntax

struct ColorCurveParams {
  CurveAdjustments adjustment;
  CurveChannel     channel;
  INT              adjustValue;
};

Members

adjustment

Type: CurveAdjustments

Element of the CurveAdjustments enumeration that specifies the adjustment to be applied.

channel

Type: CurveChannel

Element of the CurveChannel enumeration that specifies the color channel to which the adjustment applies.

adjustValue

Type: INT

Integer that specifies the intensity of the adjustment. The range of acceptable values depends on which adjustment is being applied. To see the range of acceptable values for a particular adjustment, see the CurveAdjustments enumeration.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header gdipluseffects.h (include Gdiplus.h)