Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.15 KB

README

File metadata and controls

32 lines (23 loc) · 1.15 KB
 
Aug 10, 2000
Aug 10, 2000
1
Nov 30, 2000
Nov 30, 2000
2
SDL_image 1.1
Aug 10, 2000
Aug 10, 2000
3
4
5
6
7
The latest version of this library is available from:
http://www.devolution.com/~slouken/SDL/projects/SDL_image/
This is a simple library to load images of various formats as SDL surfaces.
Mar 7, 2001
Mar 7, 2001
8
9
This library supports BMP, PNM (PPM/PGM/PBM), XPM, PCX, GIF, JPEG, PNG,
TGA, and TIFF formats.
Aug 10, 2000
Aug 10, 2000
10
11
12
13
14
15
16
17
API:
#include "SDL_image.h"
SDL_Surface *IMG_Load(const char *file);
or
SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
or
Nov 29, 2000
Nov 29, 2000
18
SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);
Aug 10, 2000
Aug 10, 2000
19
20
21
22
23
24
25
26
27
28
29
30
31
32
where type is a string specifying the format (i.e. "PNG" or "pcx").
Note that IMG_Load_RW cannot load TGA images.
An example program 'showimage' is included, with source in showimage.c
JPEG support requires the JPEG library: http://www.ijg.org/
PNG support requires the PNG library: http://www.cdrom.com/pub/png/
and the Zlib library: http://www.cdrom.com/pub/infozip/zlib/
TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/
This library is under the GNU Library General Public License, see the file
"COPYING" for details. Certain image loaders may be under a different
license, see the individual image loader source files for details.