string encode(object image) string encode(object image, object mappingoptions)
Encodes a RAS image.
The options argument may be a mapping containing zero or more encoding options:
normal options: "palette":colortable object Use this as palette for pseudocolor encoding