mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Test drawing diagonal lines
This commit is contained in:
parent
c2f433e5ac
commit
7f057ed962
|
@ -22,6 +22,10 @@ class TestPsDraw(PillowTestCase):
|
||||||
ps = PSDraw.PSDraw(fp)
|
ps = PSDraw.PSDraw(fp)
|
||||||
ps.begin_document(title)
|
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)
|
# draw the image (75 dpi)
|
||||||
ps.image(box, im, 75)
|
ps.image(box, im, 75)
|
||||||
ps.rectangle(box)
|
ps.rectangle(box)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user