long GetSize(long *x,long *y)
Get the image width and height.
long LoadFromFileXPM(char *filename,long number_colors,EW_ColorMapping *remap)
long ReadFromBufferXPM(char **data,long number_colors,EW_ColorMapping *remap)
Load an XPM format image from the specified filename or from
a compiled-in xpm data structure.
Since XPM format is actually ascii-editable C-code,
XPM's can be include'd into source modules.
Input images are automatically converted
to the number of WDS premapped colors given as
number_colors.
The conversion is done by Error Diffusion,
currently using a Floyd-Steinburg filter.
If remap is not NULL, the images colors are remapped accordingly.
void Rotate(long clockwise)
Rotate the image 90 degrees (clockwise, if the argument is non-zero).
void Flip(long vertical)
Invert the image (vertically, if the argument is non-zero).
void Draw(EW_Window *root,long posx,long posy,long background=255)
Draw the image on the given root window at the location
posx, posy.
Transparent pixels, are not drawn by default,
but the optional argument background can be used to specify
a color to replace transparent pixel with.