Tao.Sdl SDK Documentation

Sdl.SDL_SaveBMP Method 

Save an SDL_Surface as a Windows BMP file.

[Visual Basic]
Public Shared Function SDL_SaveBMP( _
   ByVal surface As IntPtr, _
   ByVal file As String _
) As Integer
[C#]
public static int SDL_SaveBMP(
   IntPtr surface,
   string file
);

Parameters

surface
file

Return Value

Returns 0 if successful or -1 if there was an error.

Remarks

Saves the SDL_Surface surface as a Windows BMP file named file.

Binds to C-function call in SDL_video.h:

            int SDL_SaveBMP(SDL_Surface *surface, const char *file);
            #define SDL_SaveBMP(surface, file) SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)
            

See Also

Sdl Class | Tao.Sdl Namespace | SDL_LoadBMP