|
SDL_GetRGB |
|
Description
Gets RGB values from a pixel in the specified pixel format.
C Syntax
PowerBASIC Syntax
Parameters
format
Pointer to the SDL_PixelFormat structure.
r
Pointer to a BYTE variable that will receive the red color value.
g
Pointer to a BYTE variable that will receive the green color value.
b
Pointer to a BYTE variable that will receive the blue color value.
Return Value
No return value.
Remarks
If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned.
If the specified pixel format has an alpha component it will be returned as all 1 bits (fully opaque).
|
