SetBrightness method

Sets the values for the lookup table brightness curve.

Syntax

HRESULT retVal = object.SetBrightness(ulCount, Weights);

Parameters

  • ulCount [in]
    Type: unsigned long

    Number of entries in the brightness curve. This value should be less than or equal to 256.

  • Weights [in]
    Type: const float

    Array that holds the brightness curve values. These values should be greater than or equal to zero and are usually around 1.0.

Remarks

For brightness adjustment, each color channel value is multiplied by the Weights value. The adjustment is applied in ulCount steps over the 256 values of the lookup table.