mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Changed second rectangle parameter to distance from bottom
This commit is contained in:
parent
ed98c668ee
commit
db1d945ce7
|
@ -86,14 +86,8 @@ class PSDraw:
|
||||||
"""
|
"""
|
||||||
Draws a rectangle.
|
Draws a rectangle.
|
||||||
|
|
||||||
:param box: A 4-tuple of integers whose order and function is currently
|
:param box: A tuple of four integers, specifying left, bottom, width and
|
||||||
undocumented.
|
height.
|
||||||
|
|
||||||
Hint: the tuple is passed into this format string:
|
|
||||||
|
|
||||||
.. code-block:: python
|
|
||||||
|
|
||||||
%d %d M 0 %d %d Vr\n
|
|
||||||
"""
|
"""
|
||||||
self.fp.write(b"%d %d M 0 %d %d Vr\n" % box)
|
self.fp.write(b"%d %d M 0 %d %d Vr\n" % box)
|
||||||
|
|
||||||
|
@ -188,9 +182,9 @@ VDI_PS = b"""\
|
||||||
/Vl { moveto lineto stroke } bind def
|
/Vl { moveto lineto stroke } bind def
|
||||||
/Vc { newpath 0 360 arc closepath } bind def
|
/Vc { newpath 0 360 arc closepath } bind def
|
||||||
/Vr { exch dup 0 rlineto
|
/Vr { exch dup 0 rlineto
|
||||||
exch dup neg 0 exch rlineto
|
exch dup 0 exch rlineto
|
||||||
exch neg 0 rlineto
|
exch neg 0 rlineto
|
||||||
0 exch rlineto
|
0 exch neg rlineto
|
||||||
100 div setgray fill 0 setgray } bind def
|
100 div setgray fill 0 setgray } bind def
|
||||||
/Tm matrix def
|
/Tm matrix def
|
||||||
/Ve { Tm currentmatrix pop
|
/Ve { Tm currentmatrix pop
|
||||||
|
|
Loading…
Reference in New Issue
Block a user