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
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
