Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Tree [87742f] master /
History



File Date Author Commit
VisualC 2009-10-15 Steven Noonan Steven Noonan [43131d] msvc: add Visual C++ project
Xcode 2010-02-23 Steven Noonan Steven Noonan [08246c] Xcode project: fix header search paths for SDL
acinclude 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
.gitignore 2009-12-21 Steven Noonan Steven Noonan [14e1cf] gitignore: ignore output junk
CHANGES 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
COPYING 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
IMG.c 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
IMG_ImageIO.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_UIImage.m 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_bmp.c 2009-10-31 Steven Noonan Steven Noonan [2a1369] IMG_bmp.c: fix compilation on MSVC++
IMG_gif.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_jpg.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_lbm.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_pcx.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_png.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_pnm.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_tga.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_tif.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_xcf.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_xpm.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_xv.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
IMG_xxx.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
MPWmake.sea.bin 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
Makefile 2010-05-05 Steven Noonan Steven Noonan [87742f] Makefile: remove output library before calling ...
Makefile.am 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
Makefile.in 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
README 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
SDL_image.h 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
SDL_image.pc.in 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
SDL_image.spec 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
SDL_image.spec.in 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
VisualC.zip 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
VisualCE.zip 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
Watcom-OS2.zip 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
Xcode.tar.gz 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
Xcode_iPhone.tar.gz 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
aclocal.m4 2009-10-24 Steven Noonan Steven Noonan [e19769] configure/aclocal.m4: regenerate with 'autoreconf'
autogen.sh 2009-07-22 Steven Noonan Steven Noonan [3076e2] SDL_image 1.2.7
config.guess 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
config.sub 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
configure 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
configure.in 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10
depcomp 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
gcc-fat.sh 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
install-sh 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
ltmain.sh 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
missing 2009-10-20 Steven Noonan Steven Noonan [a151da] Merge remote branch 'origin/upstream' into crawl
showimage.c 2010-02-22 Steven Noonan Steven Noonan [38ad02] SDL_image 1.2.9
version.rc 2010-02-22 Steven Noonan Steven Noonan [b146aa] SDL_image 1.2.10

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.