1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryPixels.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_GetRGB</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryPixels.html">
\83s
\83N
\83Z
\83\8b\8c`
\8e®
\82Æ
\95Ï
\8a·</a> - SDL_GetRGB
\r
15 \8ew
\92è
\82Ì
\83s
\83N
\83Z
\83\8b\82ÌRGB
\92l
\82ð
\93¾
\82é
\r
17 <code>void SDL_GetRGB(Uint32 pixel, const SDL_PixelFormat* format, Uint8* r, Uint8* g, Uint8* b)</code>
\r
19 <table border="1" summary="SDL_GetRGB">
\r
20 <tr><td>pixel</td><td>
\83s
\83N
\83Z
\83\8b\92l</td></tr>
\r
21 <tr><td>format</td><td><a href="SDL_PixelFormat.html">SDL_PixelFormat</a></td></tr>
\r
22 <tr><td>r</td><td>
\90Ô
\90¬
\95ª
\82Ì
\92l
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^</td></tr>
\r
23 <tr><td>g</td><td>
\97Î
\90¬
\95ª
\82Ì
\92l
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^</td></tr>
\r
24 <tr><td>b</td><td>
\90Â
\90¬
\95ª
\82Ì
\92l
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^</td></tr>
\r
27 \90F
\90¬
\95ª
\82Ì
\92l
\82ª8bit
\96¢
\96\9e\82Ì
\83s
\83N
\83Z
\83\8b\8c`
\8e®
\82Å
\82à0
\81`255
\82Ì
\94Í
\88Í
\82É
\95Ï
\8a·
\82³
\82ê
\82é.
\r
28 (
\97á: 16bit RGB565
\8c`
\8e®
\82Ì
\90^
\82Á
\94\92\82Ì
\83s
\83N
\83Z
\83\8b\82Í [0xf8, 0xfc, 0xf8]
\82Å
\82Í
\82È
\82 [0xff, 0xff, 0xff]
\82ð
\96ß
\82·.)
\r
29 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
31 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
32 <a href="SDL_GetRGBA.html">SDL_GetRGBA</a><br>
\r
33 <a href="SDL_MapRGB.html">SDL_MapRGB</a><br>
\r
34 <a href="SDL_MapRGBA.html">SDL_MapRGBA</a><br>
\r
35 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
36 <a href="https://wiki.libsdl.org/SDL_GetRGB">SDL_GetRGB - SDL Wiki</a>
\r