#include "libinfo.h"
Include dependency graph for libinfo.c:

Go to the source code of this file.
Functions | |
| int | LIReadDefIcon (char *filename) |
| Read images from a default icon. | |
| int | LIReadNewIcon (char *filename) |
| Read images from a NewIcon. | |
| int | LISetXPMTransparency (int colour) |
| Set transparent colour for XPM output. | |
| int | LIWriteXPM (char *filename, int image) |
| Write icon image to XPM image. | |
| int | LIWritePPM (char *filename, int image) |
| Write icon image to PPM image. | |
| void | LICleanUp (void) |
| Release memory and clean up. | |
| char * | LIGetVersion (void) |
| Get the library version. | |
| char * | LIGetDate (void) |
| Get the library release date. | |
| char * | LIGetCopyright (void) |
| Get the library copyright. | |
| u16 | Get16 (u8 *p) |
| u32 | Get32 (u8 *p) |
| int | Read8 (u8 *buf, int len) |
| int | ReadHeader () |
| int | WritePPM (char *filename, int width, int height, int ncols, u8 *palette, int image) |
| int | WriteXPM (char *filename, int width, int height, int ncols, u8 *palette, int image) |
| int | ReadIcon (int image) |
| char * | ReadString () |
| int | StartTooltypes () |
| u8 * | GetTooltype (char *name) |
| u8 * | DecompressNewicon (u8 *src, char *name, int len, int bits) |
| int | ReadNewicon (int image, char *name) |
Variables | |
| int | transparent = -1 |
| u8 | mwb_palette [] |
libinfo - a library to read Amiga icon files.
Copyright (C) 2003 Gary Harris <garyjharris@users.sourceforge.net>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
libinfo recognizes the default Workbench and NewIcons formats.
libinfo is based on:
amicon: an Amiga icon to ppm/xpm convertor. Copyright 2001 Adam Sampson <azz@gnu.org>
Definition in file libinfo.c.
|
|
Release memory and clean up.
Definition at line 209 of file libinfo.c. References LIBitmapSelected, LIBitmapUnselected, and LIPalette. |
|
|
Get the library copyright.
|
|
|
Get the library release date.
|
|
|
Get the library version.
|
|
|
Read images from a default icon.
Definition at line 68 of file libinfo.c. References LI_SELECTED, LI_UNSELECTED, and LIErrorString. |
|
|
Read images from a NewIcon.
Definition at line 103 of file libinfo.c. References LI_SELECTED, LI_UNSELECTED, and LIErrorString. |
|
|
Set transparent colour for XPM output.
Definition at line 144 of file libinfo.c. References LIErrorString, and LINumColours. |
|
||||||||||||
|
Write icon image to PPM image.
Definition at line 192 of file libinfo.c. References LIHeight, LINumColours, LIPalette, and LIWidth. |
|
||||||||||||
|
Write icon image to XPM image.
Definition at line 170 of file libinfo.c. References LIHeight, LINumColours, LIPalette, and LIWidth. |
|
|
Initial value: {
149, 149, 149,
0, 0, 0,
255, 255, 255,
59, 103, 162,
123, 123, 123,
175, 175, 175,
170, 144, 124,
255, 169, 151
}
|
1.3