encode_rgba
XuAPI
pub fn encode_rgba(img &image.RGBA) stringPurpose
Encode. Throws on failure.
Parameters
img&image.RGBA- img (borrowed; caller keeps it; type &image.RGBA)
Returns
string — result string
API
#image/pngPNG encode/decode (8-bit, non-interlaced).
encode_rgbapub fn encode_rgba(img &image.RGBA) stringEncode. Throws on failure.
img &image.RGBAstring — result string
decodepub fn decode(src &string) image.RGBADecode. Throws on failure.
src &stringimage.RGBA — a value of this type