graphics/sdl_image
Ver: ????
Rating: 4.2

Last Change: Sat Aug 8 18:35:47 2009

Description:

This is a simple library to load images of various formats as SDL surfaces.
This library supports BMP, PPM, 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_Load_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.

An example program 'showimage' is included, with source in showimage.c

WWW: http://www.libsdl.org/projects/SDL_image/

This port has no dependencies.

There are no reviews for this port yet. Write the First One!

Name: Email: URL (optional): Review (3000 max chars):
Search ports tree: