Tao.Sdl SDK Documentation

Sdl.SDL_GetGammaRamp Method 

Gets the color gamma lookup tables for the display.

[Visual Basic]
Public Shared Function SDL_GetGammaRamp( _
   ByVal red As Short(), _
   ByVal green As Short(), _
   ByVal blue As Short() _
) As Integer
[C#]
public static int SDL_GetGammaRamp(
   short[] red,
   short[] green,
   short[] 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

Gets the gamma translation lookup tables currently used by the display. Each table is an array of 256 Int16 values.

You must pass in valid pointers to arrays of 256 16-bit quantities. Any of the pointers may be NULL to ignore that channel.

Not all display hardware is able to change gamma.

Binds to C-function call in SDL_video.h:

int SDLCALL SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue)

See Also

Sdl Class | Tao.Sdl Namespace | SDL_SetGamma | SDL_SetGammaRamp