OS4 DepotLogo by Alkaron 
(anonymous IP:,1149) 

   Bug tracker
   Locale browser

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (532)
   o Document (21)
   o Driver (87)
   o Emulation (141)
   o Game (853)
   o Graphics (457)
   o Library (93)
   o Network (201)
   o Office (56)
   o Utility (804)
   o Video (61)

Total files: 3861

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Graphics » Viewer » showimage.lha


Description: Displays images
Download: showimage.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 282kb
Version: 1.2.6
Date: 08 Aug 07
Author: Sam Lantinga and Mattias Engdegård, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://www.libsdl.org/projects/SDL_image/
Category: graphics/viewer
License: GPL
Distribute: yes
Min OS Version: 4.0
FileID: 2940
Comments: 0
Snapshots: 0
Downloads: 459  (Current version)
459  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
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:

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.

#include "SDL_image.h"

 SDL_Surface *IMG_Load(const char *file);
 SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
 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.

Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment