From 7f057ed962f13b03efadd8c627c596640576f819 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sat, 27 Dec 2014 22:50:17 +0200 Subject: [PATCH] Test drawing diagonal lines --- Tests/test_psdraw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_psdraw.py b/Tests/test_psdraw.py index cd0731c01..9606a4392 100644 --- a/Tests/test_psdraw.py +++ b/Tests/test_psdraw.py @@ -22,6 +22,10 @@ class TestPsDraw(PillowTestCase): ps = PSDraw.PSDraw(fp) ps.begin_document(title) + # draw diagonal lines in a cross + ps.line((1*72, 2*72), (7*72, 10*72)) + ps.line((7*72, 2*72), (1*72, 10*72)) + # draw the image (75 dpi) ps.image(box, im, 75) ps.rectangle(box)