Tree [4fe64f] 1.2.8 /
 History



File Date Author Commit
 acinclude 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 CHANGES 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 COPYING 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
 IMG.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_ImageIO.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_UIImage.m 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_bmp.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_gif.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_jpg.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_lbm.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_pcx.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_png.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_pnm.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_tga.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_tif.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_xcf.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_xpm.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_xv.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 IMG_xxx.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 MPWmake.sea.bin 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
 Makefile.am 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 Makefile.in 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 README 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
 SDL_image.h 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 SDL_image.pc.in 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 SDL_image.spec 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 SDL_image.spec.in 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 VisualC.zip 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 VisualCE.zip 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 Watcom-OS2.zip 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
 Xcode.tar.gz 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 Xcode_iPhone.tar.gz 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 aclocal.m4 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 autogen.sh 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
 config.guess 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 config.sub 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 configure 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 configure.in 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 depcomp 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 gcc-fat.sh 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 install-sh 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 ltmain.sh 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 missing 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 showimage.c 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8
 version.rc 2009-10-20 Steven Noonan Steven Noonan [4fe64f] SDL_image 1.2.8

Read Me

SDL_image 1.2

The latest version of this library is available from:
http://www.libsdl.org/projects/SDL_image/

This is a simple library to load images of various formats as SDL surfaces.
This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
TGA, and TIFF formats.

API:
#include "SDL_image.h"

	SDL_Surface *IMG_Load(const char *file);
or
	SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
or
	SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);

where type is a string specifying the format (i.e. "PNG" or "pcx").
Note that IMG_Load_RW cannot load TGA images.

To create a surface from an XPM image included in C source, use:

	SDL_Surface *IMG_ReadXPMFromArray(char **xpm);

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.libpng.org/pub/png/libpng.html
    and the Zlib library: http://www.gzip.org/zlib/
TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/

If you have these libraries installed in non-standard places, you can
try adding those paths to the configure script, e.g.
sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib"
If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH
so shared library loading works correctly.

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.