如何在图像上添加文本并将其保存在图像中?

时间:2019-04-21 16:38:45

标签: image text flutter

哪个类可用于加载图像以进行编辑,以便我可以在其上添加文本并再次将其另存为PNG / JPEG到存储中

1 个答案:

答案 0 :(得分:0)

将图像作为图像加载到文件中,然后调用Image.toByteData

编辑字节数组

然后将其重新映像到decodeImageFromPixels issue 11648

对于存储来说,它有点麻烦,因为您可以选择sqlite或文件目录

https://github.com/flutter/flutter/issues/10495 Flutter save a network image to local directory

我只想说,图像大小调整在抖动方面相当慢。

https://github.com/brendan-duncan/image/issues/55

https://github.com/flutter/flutter/issues/26194

https://github.com/flutter/flutter/issues/21571#issuecomment-452042242

Flutter. High GPU load with list of high resolution images