ewLoadImageXPM

ewLoadImageXPM

ew

1998 12-05


NAME

ewLoadImageXPM - function to load XPM format images


SYNOPSIS

char *ewLoadImageXPM(char *filename,long number_colors,EW_ColorMapping *remap,long *width,long *height)


ewLoadImageXPM loads an image specified by filename. It sets the width and height of the loaded 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. ewLoadImageXPM 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), ewReadImageXPM(3)