README
author Sam Lantinga <slouken@lokigames.com>
Wed, 29 Nov 2000 11:57:44 +0000
changeset 8 f39c13a577e8
parent 0 76be7dab668c
child 9 b2f0eaf93201
permissions -rw-r--r--
*** empty log message ***
slouken@0
     1
slouken@0
     2
SDL_image 1.0
slouken@0
     3
slouken@0
     4
The latest version of this library is available from:
slouken@0
     5
http://www.devolution.com/~slouken/SDL/projects/SDL_image/
slouken@0
     6
slouken@0
     7
This is a simple library to load images of various formats as SDL surfaces.
slouken@8
     8
This library supports BMP, PPM, XPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
slouken@0
     9
slouken@0
    10
API:
slouken@0
    11
#include "SDL_image.h"
slouken@0
    12
slouken@0
    13
	SDL_Surface *IMG_Load(const char *file);
slouken@0
    14
or
slouken@0
    15
	SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
slouken@0
    16
or
slouken@8
    17
	SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);
slouken@0
    18
slouken@0
    19
where type is a string specifying the format (i.e. "PNG" or "pcx").
slouken@0
    20
Note that IMG_Load_RW cannot load TGA images.
slouken@0
    21
slouken@0
    22
An example program 'showimage' is included, with source in showimage.c
slouken@0
    23
slouken@0
    24
JPEG support requires the JPEG library: http://www.ijg.org/
slouken@0
    25
PNG support requires the PNG library: http://www.cdrom.com/pub/png/
slouken@0
    26
    and the Zlib library: http://www.cdrom.com/pub/infozip/zlib/
slouken@0
    27
TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/
slouken@0
    28
slouken@0
    29
This library is under the GNU Library General Public License, see the file
slouken@0
    30
"COPYING" for details.  Certain image loaders may be under a different
slouken@0
    31
license, see the individual image loader source files for details.