GetContrast method

Retrieves the settings for the lookup table contrast curve.


HRESULT retVal = object.GetContrast(pulCount, Weights);


  • pulCount [in, out]
    Type: unsigned long

    Pointer to the number of entries in the contrast curve.

  • Weights [out]
    Type: float

    Array that holds the contrast curve values.


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