Open mb812 opened 3 years ago
@KevinGong2013 any news about this task?
Check the scale of image (image.scale) or resize it to 1x scale and image width must mod 8 = 0
Printer has been rewrite.
Please try this code.
let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.initialize)
<<< Image(cgImage)
<<~ .page(.printAndFeed(lines: 1))
I'm not able to print a 128x128 full black image (or any other image).
TicketImage code:
Should this depend on the printer device? I'm using a GOOJPRT PT-210 thermal printer.
Everything else works great!