decode
XuAPI
pub fn decode(data &string) image.RGBAPurpose
Decode. Throws on failure.
Parameters
data&string- data (borrowed; caller keeps it; type &string)
Returns
image.RGBA — a value of this type
API
#image/jpegBaseline JPEG decode and RGBA encode.
decodepub fn decode(data &string) image.RGBADecode. Throws on failure.
data &stringimage.RGBA — a value of this type
encode_rgbapub fn encode_rgba(img &image.RGBA) stringEncode. Throws on failure.
img &image.RGBAstring — result string