函数:imageBase64 图片 base64 编码

函数名称:图片 base64 编码

函数功能:将图片进行 base64 编码

TSLib 版本:仅支持 v1.3.5 及其以上版本

函数方法

str = imageBase64(path)

参数 类型 必填 说明
path string 需要进行编码的图片
参数 类型 说明
str string 编码后的数据

函数用例

require("TSLib")
path = userPath().."/res/test.png"
snapshot(path,0,0,200,200)
--需要下载 ts.so
str = imageBase64(path)
nLog(str)

注意事项

Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""