AminetAminet
Search:
84736 packages online
About
Recent
Browse
Search
Upload
Setup
Services

gfx/show/showimage-os4.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:ShowImage - Displays images
Author:Sam Lantinga and Mattias Engdegard, AmigaOS 4.0 compile by Spot / Up Rough
Type:gfx/show
Version:1.2.6
Architecture:ppc-amigaos
Date:2008-02-15
Download:gfx/show/showimage-os4.lha - View contents
Readme:gfx/show/showimage-os4.readme
Downloads:618

This is ShowImage, it's taken from the SDL_Image package.
It was supplied as an example usage of SDL_Image, but the tool 
itself is quite useable, so I decided to upload it.
/ Spot


--- Original SDL_Image ReadMe follows ---


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.


Contents of gfx/show/showimage-os4.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2484    5910  42.0% -lh5- 5383 Jul 18  2007 ShowImage/CHANGES
[generic]                 8818   24390  36.2% -lh5- a625 Jul  2  2007 ShowImage/COPYING
[generic]                  824    1593  51.7% -lh5- 89d4 Jul 18  2007 ShowImage/README
[generic]               276555  276555 100.0% -lh0- 42b6 Aug  8  2007 ShowImage/ShowImage
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files  288681  308448  93.6%            Feb 15 07:59
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>