Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-12-22 01:43:45
Size: 863
Editor: SheenaSmith
Comment: update formatting - enums, structs, the/an
Revision 6 as of 2011-01-11 23:45:03
Size: 801
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to save a surface to a file. Use this function to save a surface to a BMP file.
Line 17: Line 16:
||'''surface'''||the [[SDL_Surface]] structure to save||
||'''file'''||,,a pointer to ,,^the file to fill with the surface data^||
||'''surface'''||the [[SDL_Surface]] structure containing the image to be saved||
||'''file'''||the file to be saved to||

SDL_SaveBMP

Use this function to save a surface to a BMP file.

Syntax

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

Function Parameters

surface

the SDL_Surface structure containing the image to be saved

file

the file to be saved to

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