parameter for implementation of nonnative qrcode (#289)

This commit is contained in:
primax79 2018-05-13 18:42:41 +02:00 committed by Patrick Kanzler
parent b418302311
commit d085e5c467
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class Escpos(object):
self._raw(GS + b'(L' + header + m + fn + data) self._raw(GS + b'(L' + header + m + fn + data)
def qr(self, content, ec=QR_ECLEVEL_L, size=3, model=QR_MODEL_2, def qr(self, content, ec=QR_ECLEVEL_L, size=3, model=QR_MODEL_2,
native=False, center=False): native=False, center=False, impl="bitImageRaster"):
""" Print QR Code for the provided string """ Print QR Code for the provided string
:param content: The content of the code. Numeric data will be more efficiently compacted. :param content: The content of the code. Numeric data will be more efficiently compacted.
@ -222,7 +222,7 @@ class Escpos(object):
# Convert the RGB image in printable image # Convert the RGB image in printable image
self.text('\n') self.text('\n')
self.image(im, center=center) self.image(im, center=center, impl=impl)
self.text('\n') self.text('\n')
self.text('\n') self.text('\n')
return return