From 5a03f0fc7c8a4bc5202fffb5f1361dbf77263ce8 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Wed, 2 Mar 2016 23:16:08 +0100 Subject: [PATCH] DOC improve docstring of direct_image --- escpos/escpos.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 62c90b1..0105c61 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -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