Method Image.XWD.encode() Method encode string encode(object image) Description Encode an image to an XWD image file. Currently always encodes the image to ZPixmap 24bit TrueColor in native byteorder with no colormap, padding or title.