ewReadImageXPM

ewReadImageXPM

ew

1998 12-05


NAME

ewReadImageXPM - function to load XPM format images


SYNOPSIS

char *ewReadImageXPM(char **data,long number_colors,EW_ColorMapping *remap,long *width,long *height)


ewReadImageXPM reads an image in the buffer data, presumably a directly compiled XPM file. It sets the width and height of the image and returns a newly allocated buffer containing color-indexed raster data. The number_colors determines how many of the builtin colors to use, generally 16, 8, or 4. The image is converted into the colormap using Floyd-Steinburg Error Diffusion. ewReadImageXPM returns NULL if not successful.


If remap is not NULL, the images colors are remapped accordingly.


SEE ALSO

EW_intro(3), EW_Window(3), EW_ColorMapping(3), ewLoadImageXPM(3)


AUTHOR

Jason Weber