SetColorBalance method

Sets the tint curves for color balance operations on the selected color.

Syntax

HRESULT retVal = object.SetColorBalance(Color, ulCount, Weights);

Parameters

  • Color [in]
    Type: [DXLUTCOLOR](aa743751(v=vs.85).md)

    Member of the DXLUTCOLOR enumeration that selects the color channel for this tint curve.

  • ulCount [in]
    Type: unsigned long

    Number of values in the returned tint curve. This value should be less than or equal to 256.

  • Weights [in]
    Type: const float

    Array of values that is the tint curve used for color balancing.

Remarks

A tint curve is a separate brightness curve for each color channel. This gives you finer control over the output colors than the brightness adjustment alone.