Image printing using with Flutter Thermal Printer

78 Views Asked by At

I need to print a table with border in bluetooth thermal printer but its not achieved my passing bytes of text. So i decided to print image but i am facing quality issue after printing.

Package used : bluetooth_thermal_printer

My requirement to print

Requirement

  CapabilityProfile profile = await CapabilityProfile.load();
    final generator = Generator(PaperSize.mm80, profile);
    final ByteData data = await rootBundle.load('path');
    final Uint8List imgBytes = data.buffer.asUint8List();

    final img.Image image = img.decodeImage(imgBytes)!;
    bytes += generator.image(image);

This is how i tried to print the image

0

There are 0 best solutions below