Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-09-23 19:11:23
Size: 1473
Editor: SheenaSmith
Comment: correct typo
Revision 3 as of 2010-10-10 21:35:56
Size: 1479
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
||'''src'''||a pointer to the source pixels|| ||'''src'''||,,a pointer to,, the source pixels||
Line 29: Line 29:
||'''dst'''||a pointer to be filled with new pixel data|| ||'''dst'''||^a pointer to ^be filled with new pixel data||

DRAFT

SDL_ConvertPixels

Use this function to copy a block of pixels of one format to another format.

Syntax

int SDL_ConvertPixels(int         width,
                      int         height,
                      Uint32      src_format,
                      const void* src,
                      int         src_pitch,
                      Uint32      dst_format,
                      void*       dst,
                      int         dst_pitch)

Function Parameters

width

the width of the block to copy, in pixels

height

the height of the block to copy, in pixels

src_format

the format of the source pixels, in bits

src

a pointer to the source pixels

src_pitch

the pitch of the block to copy

dst_format

the format of the destination pixels, in bits

dst

a pointer to be filled with new pixel data

dst_pitch

the pitch of the destination pixels

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategorySurface

None: SDL_ConvertPixels (last edited 2011-01-05 18:25:50 by SheenaSmith)

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