Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-08-23 17:57:39
Size: 859
Editor: SheenaSmith
Comment: update content for consistency
Revision 3 as of 2010-09-22 22:35:22
Size: 864
Editor: SheenaSmith
Comment: update content - standard return value
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
Returns 0 if successful or -1 if there was an error; call [[SDL_GetError]]() for more information. Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information.

DRAFT

SDL_SaveBMP

Use this function to save a surface to a file.

Syntax

int SDL_SaveBMP(SDL_Surface* surface,
                const char*  file)

Function Parameters

surface

a pointer to the [[SDL_Surface]] to save

file

a pointer to the file to fill with the surface data

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_SaveBMP (last edited 2016-10-08 22:36:17 by PhilippWiesemann)

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