【发布时间】:2021-11-27 03:37:51
【问题描述】:
我可以在收据纸上打印我的图像,但我面临的问题是图像是一行一行的,这是个问题。
下面是我的代码
final ByteData data = await rootBundle.load('assets/logo1.png');
final Uint8List buffer= data.buffer.asUint8List();
final image = decodeImage(buffer);
bytes += generator.image(image);
【问题讨论】:
-
如果您使用的是系统级打印服务,是否可以使用其他应用程序将图形打印到该打印机?
-
您的问题似乎缺少其他人调查、重现或解决问题所需的信息。例如,打印机供应商、型号、使用的库和最低源代码。 How do I ask a good question?,How to create a Minimal, Reproducible Example对了,你调整行距的量吗? ESC 3, Recent similar article