DOC improve docstring of direct_image

This commit is contained in:
Patrick Kanzler 2016-03-02 23:16:08 +01:00
parent 4cfc4fd564
commit 5a03f0fc7c
1 changed files with 4 additions and 2 deletions

View File

@ -208,9 +208,11 @@ class Escpos(object):
current += bandsize
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
i = 0