Previous section To contents Next section

12.23 Image.XWD

DESCRIPTION
This submodule keeps the XWD (X Windows Dump) decode capabilities of the Image module.

XWD is the output format for the xwd program.

Simple decoding:
decode

Advanced decoding:
_decode

SEE ALSO
Image, Image.Image, Image.PNM and Image.X

METHOD
Image.XWD.decode

SYNTAX
object decode(string data)

DESCRIPTION
Simple decodes a XWD image file.

METHOD
Image.XWD._decode,
Image.XWD.decode_header

SYNTAX
mapping _decode(string data)
mapping decode_header(string data)

DESCRIPTION
Decodes XWD data and returns the result.

Supported XWD visual classes and encoding formats are TrueColor / ZPixmap DirectColor / ZPixmap PseudoColor / ZPixmap

If someone sends me files of other formats, these formats may be implemented. :) /mirar@idonex.se

RETURNS
the decoded image as an image object

NOTE
This function may throw errors upon illegal or unknown XWD data.

SEE ALSO
decode

Previous section To contents Next section