将图片转换为base64编码 (:to_base64)

声明

base64字符串 = 图像1:to_base64()

参数及返回值

  • base64字符串
    • 图片对象转换为base64后的字符串码

示例

scrn = screen.image()
base64Str = scrn:to_base64()
print(base64Str)

:上述代码中使用了非本章函数 screen.image

powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""