void SDL_GetRGB(Uint32 pixelvalue, const SDL_PixelFormatDetails *format, const SDL_Palette *palette, Uint8 *r, Uint8 *g, Uint8 *b);
| Uint32 | pixelvalue | ピクセル値 |
| const SDL_PixelFormatDetails * | format | ピクセルのSDL_PixelFormat |
| const SDL_Palette * | palette | インデックス形式の場合のパレット. NULLも可 |
| Uint8 * | r | 赤要素の値の代入先へのポインタ |
| Uint8 * | g | 緑要素の値の代入先へのポインタ |
| Uint8 * | b | 青要素の値の代入先へのポインタ |
この関数はパレットを変更しない限りどのスレッドからも安全に呼べる.