Method Image.XPM.encode()


Method encode

string encode(Image.Image image, mapping|void options)

Description

Encode the given image as a XPM image.

This will, at least currently, always produce a 2-characters-per-pixel XPM.

The supported options are:

"name" : string(1..128)
"colortable" : Image.Colortable
"alpha" : Image.Image
"comment" : string(1..128)