decode
XuAPI
pub fn decode(data &string) image.RGBA用途
解码。失败时 throw。
参数
data&string- 数据(借用,调用方仍持有;类型 &string)
返回
image.RGBA — 该类型的值
API
#image/jpeg基线 JPEG 解码与 RGBA 编码。
decodepub fn decode(data &string) image.RGBA解码。失败时 throw。
data &stringimage.RGBA — 该类型的值
encode_rgbapub fn encode_rgba(img &image.RGBA) string编码。失败时 throw。
img &image.RGBAstring — 结果字符串