SetReGammaRamp 

Sets the re-gamma on a display using a ramp file.

Syntax 

ADLX_RESULT     SetReGammaRamp (const char* path)

Parameters 

  1. [in] pPath const char* The zero-terminated string that specifies the path of the ramp file.

Return Value 

If the re-gamma is successfully set, ADLX_OK is returned.

If the re-gamma is not successfully set, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks 

The method sets the custom re-gamma on a display using a ramp file. The following is an example of a LUT file format, each acceptable value is a number between 0 and 65535.

      [R]            [G]          [B]
[0]    0,             0,           0
[1]   49836,         34885,        0
...
[254] 58260,         58782,        0
[255] 65533,         56634,        0

Requirements 

Header

include “IDisplayGamma.h”

Minimum version

1.0