ESCPOS icon indicating copy to clipboard operation
ESCPOS copied to clipboard

Create Extension Method for Barcode and QRCode commands

Open igorocampos opened this issue 2 years ago • 0 comments

Dependent on #29

Once the new Barcode and QRCode methods are created, we can create methods that will extend a string (the barcode data) like this

public static byte[] ToBarcode(this string barcode, BarCodeType barCodeType, int heightInDots = 162, BarcodeWidth barcodeWidth = BarcodeWidth.Normal )
  => Commands.Barcode(barCodeType, barcode, heightInDots, barcodeWidth);

igorocampos avatar Nov 25 '22 12:11 igorocampos