Tao.Sdl SDK Documentation

Sdl.SDL_LoadBMP Method 

Load a Windows BMP file into an SDL_Surface.

[Visual Basic]
Public Shared Function SDL_LoadBMP( _
   ByVal file As String _
) As IntPtr
[C#]
public static IntPtr SDL_LoadBMP(
   string file
);

Parameters

file

Return Value

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

Remarks

Loads a surface from a named Windows BMP file.

Binds to C-function call in SDL_video.h:

            SDL_Surface * SDL_LoadBMP(const char *file)
            #define SDL_LoadBMP(file)    SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
            

See Also

Sdl Class | Tao.Sdl Namespace | SDL_SaveBMP