Penguin
Blame: SDL_GetRGB(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_GetRGB(3) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 SDL_GetRGB
2 !!!SDL_GetRGB
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 SEE ALSO
7 ----
8 !!NAME
9
10
11 SDL_GetRGB- Get RGB values from a pixel in the specified pixel format.
12 !!SYNOPSIS
13
14
15 __#include __
16
17
2 perry 18 __void SDL_GetRGB__(__Uint32 pixel, SDL_!PixelFormat
1 perry 19 *fmt, Uint8 *r, Uint8 *g, Uint8 *b__);
20 !!DESCRIPTION
21
22
23 Get RGB component values from a pixel stored in the
24 specified pixel format.
25
26
27 This function uses the entire 8-bit [[0..255] range when
28 converting color components from pixel formats with less
29 than 8-bits per RGB component (e.g., a completely white
30 pixel in 16-bit RGB565 format would return [[0xff, 0xff,
31 0xff] not [[0xf8, 0xfc, 0xf8]).
32 !!SEE ALSO
33
34
35 __SDL_GetRGBA__, __SDL_MapRGB__, __SDL_MapRGBA__,
2 perry 36 __SDL_!PixelFormat__
1 perry 37 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.