IM: old_im.h File Reference

IM - Imaging Libray

old_im.h File Reference


Detailed Description

See Copyright Notice in im_lib.h
Id
Exp

Go to the source code of this file.

Defines

#define IM_ERR_READ   IM_ERR_ACCESS
#define IM_ERR_WRITE   IM_ERR_ACCESS
#define IM_ERR_TYPE   IM_ERR_DATA
#define IM_ERR_COMP   IM_ERR_COMPRESS
#define IM_INTERRUPTED   -1
#define IM_ALL   -1
#define IM_COUNTER_CB   0
#define IM_RESOLUTION_CB   1
#define IM_GIF_TRANSPARENT_COLOR_CB   0
#define IM_TIF_IMAGE_DESCRIPTION_CB   0

Typedefs

typedef int(* imCallback )(char *filename)
typedef int(* imFileCounterCallback )(char *filename, int percent, int io)
typedef int(* imResolutionCallback )(char *filename, double *xres, double *yres, int *res_unit)
typedef int(* imGifTranspIndex )(char *filename, unsigned char *transp_index)
typedef int(* imTiffImageDesc )(char *filename, char *img_desc)

Enumerations

enum  {
  IM_BMP, IM_PCX, IM_GIF, IM_TIF,
  IM_RAS, IM_SGI, IM_JPG, IM_LED,
  IM_TGA
}
enum  { IM_NONE = 0x0000, IM_DEFAULT = 0x0100, IM_COMPRESSED = 0x0200 }
enum  { IM_RES_NONE, IM_RES_DPI, IM_RES_DPC }

Functions

long imEncodeColor (unsigned char red, unsigned char green, unsigned char blue)
void imDecodeColor (unsigned char *red, unsigned char *green, unsigned char *blue, long palette)
int imFileFormat (char *filename, int *format)
int imImageInfo (char *filename, int *width, int *height, int *type, int *palette_count)
int imLoadRGB (char *filename, unsigned char *red, unsigned char *green, unsigned char *blue)
int imSaveRGB (int width, int height, int format, unsigned char *red, unsigned char *green, unsigned char *blue, char *filename)
int imLoadMap (char *filename, unsigned char *map, long *palette)
int imSaveMap (int width, int height, int format, unsigned char *map, int palette_count, long *palette, char *filename)
void imRGB2Map (int width, int height, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *map, int palette_count, long *palette)
void imMap2RGB (int width, int height, unsigned char *map, int palette_count, long *colors, unsigned char *red, unsigned char *green, unsigned char *blue)
void imRGB2Gray (int width, int height, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *map, long *grays)
void imMap2Gray (int width, int height, unsigned char *map, int palette_count, long *colors, unsigned char *grey_map, long *grays)
void imResize (int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map)
void imStretch (int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map)
int imRegisterCallback (imCallback cb, int cb_id, int format)