Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2009-11-18 20:40:15
Size: 814
Editor: SheenaSmith
Comment: marked important question
Revision 3 as of 2009-11-22 20:00:53
Size: 736
Editor: SheenaSmith
Comment: content corrections
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Use this function to map a pixel value into the RGB components for a given pixel format.
??G
et RGB values from a pixel in the specified pixel format??
Use this function to get RGB values from a pixel in the specified format.

SDL_GetRGB

Use this function to get RGB values from a pixel in the specified format.

Syntax

void SDL_GetRGB(Uint32                 pixel,
                const SDL_PixelFormat* format,
                Uint8*                 r, 
                Uint8*                 g, 
                Uint8*                 b)

Function Parameters

pixel

format

r

g

b

Code Examples

You can add your code example here

Remarks

You can add useful comments here

None: SDL_GetRGB (last edited 2010-10-16 05:52:23 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit