SDL_LoadBMP

Name

SDL_LoadBMP -- Load a Windows BMP file into an SDL_Surface.

Synopsis

#include "SDL.h"

SDL_Surface *SDL_LoadBMP(const char *file);

Description

Loads a surface from a named Windows BMP file.

Note: When loading a 24-bit Windows BMP file, pixel data points are loaded as blue, green, red, and NOT red, green, blue (as one might expect).

Return Value

Returns the new surface, or NULL if there was an error.

See Also

SDL_SaveBMP

SDL_LoadBMP (last edited 2008-05-03 23:36:23 by ip68-6-103-233)