Tao.Sdl SDK Documentation

Sdl.SDL_SetGammaRamp Method 

Set the gamma translation table for the red, green, and blue channels of the video hardware.

[Visual Basic]
Public Shared Function SDL_SetGammaRamp( _
   ByVal red As Short(), _
   ByVal green As Short(), _
   ByVal blue As Short() _
) As Integer
[C#]
public static int SDL_SetGammaRamp(
   short[] red,
   short[] green,
   short[] blue
);

Parameters

red
green
blue

Return Value

If the call succeeds, it will return 0. If the display driver or hardware does not support gamma translation, or otherwise fails, this function will return -1.

Remarks

Each table is an array of 256 16-bit quantities, representing a mapping between the input and output for that channel. The input is the index into the array, and the output is the 16-bit gamma value at that index, scaled to the output color precision. You may pass NULL for any of the channels to leave it unchanged.

See Also

Sdl Class | Tao.Sdl Namespace | SDL_SetGamma | SDL_GetGammaRamp