BSD Ports

graphics/sdl_image 1.2.12_14 DragonFly

Simple library to load images of various formats as SDL surfaces

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
LGPL21
Categories
graphics
Package size
43.0 KiB, 159.6 KiB installed

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

In the other systems

SystemPortVersion
DragonFlygraphics/sdl_image1.2.12_14
FreeBSDgraphics/sdl_image1.2.12_14
MidnightBSDgraphics/sdl_image1.2.12_4
HardenedBSDgraphics/sdl_image1.2.12_14
GhostBSDgraphics/sdl_image1.2.12_14

Install

Binary package:

pkg install sdl_image

From DPorts:

cd /usr/dports/graphics/sdl_image && make install clean

Dependencies

Run dependencies 5
Required by 142

The first 100 are listed.