Previous section To contents Next section

12.16 Image.PCX

DESCRIPTION

METHOD
Image.PCX.decode

SYNTAX
object decode(string data)

DESCRIPTION
Decodes a PCX image.

NOTE
Throws upon error in data.

METHOD
Image.PCX.encode,
Image.PCX._encode

SYNTAX
string encode(object image)
string encode(object image,  mapping options)
string _encode(object image)
string _encode(object image,  mapping options)

DESCRIPTION
Encodes a PCX image. The _encode and the encode functions are identical

The options argument may be a mapping containing zero or more encoding options:

normal options:
"raw":1
Do not RLE encode the image
"dpy":int
"xdpy":int
"ydpy":int
Image resolution (in pixels/inch, integer numbers)
"xoffset":int
"yoffset":int
Image offset (not used by most programs, but gimp uses it)

METHOD
Image.PCX._decode

SYNTAX
mapping _decode(string data)

DESCRIPTION
Decodes a PCX image to a mapping.

NOTE
Throws upon error in data.

Previous section To contents Next section