Method Image.WBMP.encode() Method encode Method _encode string encode(object image, void|mapping args) string _encode(object image, void|mapping args) Description Encode the given image as a WBMP image. All pixels that are not black will be encoded as white.