SetContrast method

Sets the values for the lookup table contrast curve.

Syntax


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

Parameters

ulCount [in]

Type: unsigned long

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

Weights [in]

Type: const float

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

Remarks

Contrast adjustments shift the range of each color channel around a midpoint. The adjustment is applied in ulCount steps over the 256 values of the lookup table.

 

 

Show: