DOC improve docstring of direct_image
This commit is contained in:
parent
4cfc4fd564
commit
5a03f0fc7c
|
@ -208,9 +208,11 @@ class Escpos(object):
|
||||||
current += bandsize
|
current += bandsize
|
||||||
|
|
||||||
def direct_image(self, image):
|
def direct_image(self, image):
|
||||||
""" Send image to printer
|
""" Direct printing function for pictures
|
||||||
|
|
||||||
:param image:
|
This function is rather fragile and will fail when the Image object is not suited.
|
||||||
|
|
||||||
|
:param image: PIL image object, containing a 1-bit picture
|
||||||
"""
|
"""
|
||||||
mask = 0x80
|
mask = 0x80
|
||||||
i = 0
|
i = 0
|
||||||
|
|
Loading…
Reference in New Issue