Save a surface to a file.
Defined in [SDL_surface.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_surface.h), but apps should _only_ `#include "SDL.h"`!
#define SDL_SaveBMP(surface, file) \
SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)
Convenience macro.
...
SDL_Surface *sfc = ...
...
if(SDL_SaveBMP(sfc, "somefile.bmp") != 0)
{// Error saving bitmap
"SDL_SaveBMP failed: %s\n", SDL_GetError());
printf( }
CategoryAPI, CategoryAPIMacro, CategorySurface