Test drawing diagonal lines

This commit is contained in:
hugovk 2014-12-27 22:50:17 +02:00
parent c2f433e5ac
commit 7f057ed962

View File

@ -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)