Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5131 clevermous 1
2
>
3
>
4
>SDL_GetRGBA
5
>
6
NAME="GENERATOR"
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8
">
9
REL="HOME"
10
TITLE="SDL Library Documentation"
11
HREF="index.html">
12
REL="UP"
13
TITLE="Video"
14
HREF="video.html">
15
REL="PREVIOUS"
16
TITLE="SDL_GetRGB"
17
HREF="sdlgetrgb.html">
18
REL="NEXT"
19
TITLE="SDL_CreateRGBSurface"
20
HREF="sdlcreatergbsurface.html">
21
>
22
CLASS="REFENTRY"
23
BGCOLOR="#FFF8DC"
24
TEXT="#000000"
25
LINK="#0000ee"
26
VLINK="#551a8b"
27
ALINK="#ff0000"
28
>
29
CLASS="NAVHEADER"
30
>
31
WIDTH="100%"
32
BORDER="0"
33
CELLPADDING="0"
34
CELLSPACING="0"
35
>
36
>
37
COLSPAN="3"
38
ALIGN="center"
39
>SDL Library Documentation
40
>
41
>
42
>
43
WIDTH="10%"
44
ALIGN="left"
45
VALIGN="bottom"
46
>
47
HREF="sdlgetrgb.html"
48
>Prev
49
>
50
>
51
WIDTH="80%"
52
ALIGN="center"
53
VALIGN="bottom"
54
>
55
>
56
WIDTH="10%"
57
ALIGN="right"
58
VALIGN="bottom"
59
>
60
HREF="sdlcreatergbsurface.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLGETRGBA"
71
>SDL_GetRGBA
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN1332"
77
>
78
>
79
>Name
80
>SDL_GetRGBA -- Get RGBA values from a pixel in the specified pixel format.
81
>
82
CLASS="REFSYNOPSISDIV"
83
>
84
NAME="AEN1335"
85
>
86
>
87
>Synopsis
88
>
89
CLASS="FUNCSYNOPSIS"
90
>
91
NAME="AEN1336"
92
>
93
>
94
>
95
>
96
CLASS="FUNCSYNOPSISINFO"
97
>#include "SDL.h"
98
>
99
>
100
>
101
CLASS="FUNCDEF"
102
>void 
103
CLASS="FSFUNC"
104
>SDL_GetRGBA
105
>
106
>(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
107
>
108
>
109
>
110
>
111
>
112
>
113
CLASS="REFSECT1"
114
>
115
NAME="AEN1342"
116
>
117
>
118
>Description
119
>
120
>Get RGBA component values from a pixel stored in the specified pixel format.
121
>
122
>This function uses the entire 8-bit [0..255] range when converting color
123
components from pixel formats with less than 8-bits per RGB component
124
(e.g., a completely white pixel in 16-bit RGB565 format would return
125
[0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).
126
>
127
>If the surface has no alpha component, the alpha will be returned as 0xff
128
(100% opaque).
129
>
130
>
131
CLASS="REFSECT1"
132
>
133
NAME="AEN1347"
134
>
135
>
136
>See Also
137
>
138
>
139
HREF="sdlgetrgb.html"
140
>SDL_GetRGB
141
>,
142
143
HREF="sdlmaprgb.html"
144
>SDL_MapRGB
145
>,
146
147
HREF="sdlmaprgba.html"
148
>SDL_MapRGBA
149
>,
150
151
HREF="sdlpixelformat.html"
152
>SDL_PixelFormat
153
>
154
>
155
>
156
CLASS="NAVFOOTER"
157
>
158
ALIGN="LEFT"
159
WIDTH="100%">
160
WIDTH="100%"
161
BORDER="0"
162
CELLPADDING="0"
163
CELLSPACING="0"
164
>
165
>
166
WIDTH="33%"
167
ALIGN="left"
168
VALIGN="top"
169
>
170
HREF="sdlgetrgb.html"
171
>Prev
172
>
173
>
174
WIDTH="34%"
175
ALIGN="center"
176
VALIGN="top"
177
>
178
HREF="index.html"
179
>Home
180
>
181
>
182
WIDTH="33%"
183
ALIGN="right"
184
VALIGN="top"
185
>
186
HREF="sdlcreatergbsurface.html"
187
>Next
188
>
189
>
190
>
191
>
192
WIDTH="33%"
193
ALIGN="left"
194
VALIGN="top"
195
>SDL_GetRGB
196
>
197
WIDTH="34%"
198
ALIGN="center"
199
VALIGN="top"
200
>
201
HREF="video.html"
202
>Up
203
>
204
>
205
WIDTH="33%"
206
ALIGN="right"
207
VALIGN="top"
208
>SDL_CreateRGBSurface
209
>
210
>
211
>
212
>
213
>
214
>