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