Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/PIL/__pycache__/PSDraw.cpython-37.pyc

148 lines
5.7 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
(U<>]s<00>@s@ddlZddlmZddlmZGdd<06>de<05>ZdZdZd Z dS)
<EFBFBD>N<>)<01>EpsImagePlugin)<01>py3c@s^eZdZdZddd<04>Zdd<06>Zddd<08>Zd d
<EFBFBD>Zd d <0C>Zd d<0E>Z dd<10>Z
dd<12>Z ddd<14>Z dS)<18>PSDrawzi
Sets up printing to the given file. If **fp** is omitted,
:py:attr:`sys.stdout` is assumed.
NcCs|s
tj}||_dS)N)<03>sys<79>stdout<75>fp)<02>selfr<00>r
<00>./tmp/pip-install-pc7tm5jb/Pillow/PIL/PSDraw.py<70>__init__!szPSDraw.__init__cCs4tr|jtjkr|j<01>|<01>n|j<01>t|d<01><02>dS)NzUTF-8)rrrr<00>write<74>bytes)r Zto_writer
r
r <00> _fp_write&szPSDraw._fp_writecCs2|<00>d<01>|<00>t<01>|<00>t<02>|<00>d<02>i|_dS)z=Set up printing of a document. (Write Postscript DSC header.)zD%!PS-Adobe-3.0
save
/showpage { } def
%%EndComments
%%BeginDocument
z %%EndProlog
N)r<00> EDROFF_PS<50>VDI_PS<50>isofont)r <00>idr
r
r <00>begin_document,s 


zPSDraw.begin_documentcCs$|<00>d<01>t|jd<02>r |j<02><03>dS)z-Ends printing. (Write Postscript DSC footer.)z%%%EndDocument
restore showpage
%%End
<EFBFBD>flushN)r<00>hasattrrr)r r
r
r <00> end_document<s
 zPSDraw.end_documentcCs<||jkr&|<00>d||f<00>d|j|<|<00>d||f<00>dS)z~
Selects which font to use.
:param font: A Postscript font name
:param size: Size in points.
z#/PSDraw-%s ISOLatin1Encoding /%s E
rz/F0 %d /PSDraw-%s F
N)rr)r <00>font<6E>sizer
r
r <00>setfontBs

zPSDraw.setfontcCs||}|<00>d|<00>dS)z<>
Draws a line between the two points. Coordinates are given in
Postscript point coordinates (72 points per inch, (0, 0) is the lower
left corner of the page).
z%d %d %d %d Vl
N)r)r Zxy0Zxy1<79>xyr
r
r <00>linePsz PSDraw.linecCs|<00>d|<00>dS)a8
Draws a rectangle.
:param box: A 4-tuple of integers whose order and function is currently
undocumented.
Hint: the tuple is passed into this format string:
.. code-block:: python
%d %d M %d %d 0 Vr
z%d %d M %d %d 0 Vr
N)r)r <00>boxr
r
r <00> rectangleYs zPSDraw.rectanglecCs<d<01>|<02>d<02><01>}d<03>|<02>d<04><01>}||f}|<00>d|<00>dS)z<>
Draws text at the given position. You must use
:py:meth:`~PIL.PSDraw.PSDraw.setfont` before calling this method.
z\(<28>(z\)<29>)z%d %d M (%s) S
N)<03>join<69>splitr)r r<00>textr
r
r r#hs
z PSDraw.textc Cs4|s|jdkrd}nd}t|jdd<00>|}t|jdd<00>|}t|d|d<00>}t|d|d<00>}||kr<>|||}|}||kr<>|||}|}||d|d}||d|d} |<00>d || f<00>||f|jk<03>r||jd}
||jd} |<00>d
|
| f<00>t<04>||jd d<04>|<00>d <0C>d S) z,Draw a PIL image, centered in the given box.<2E>1<><31><00>dr<00>Hr<00><00>zgsave
%f %f translate
z %f %f scale
Nz
grestore
)<07>mode<64>floatrrrZ_saver) r rZimZdpi<70>x<>yZxmaxZymaxZdxZdyZsxZsyr
r
r <00>imagers.
  z PSDraw.image)N)N)N) <0A>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r rrrrrrr#r.r
r
r
r rs

 
ra<>/S { show } bind def
/P { moveto show } bind def
/M { moveto } bind def
/X { 0 rmoveto } bind def
/Y { 0 exch rmoveto } bind def
/E { findfont
dup maxlength dict begin
{
1 index /FID ne { def } { pop pop } ifelse
} forall
/Encoding exch def
dup /FontName exch def
currentdict end definefont pop
} bind def
/F { findfont exch scalefont dup setfont
[ exch /setfont cvx ] cvx bind def
} bind def
a<EFBFBD>/Vm { moveto } bind def
/Va { newpath arcn stroke } bind def
/Vl { moveto lineto stroke } bind def
/Vc { newpath 0 360 arc closepath } bind def
/Vr { exch dup 0 rlineto
exch dup neg 0 exch rlineto
exch neg 0 rlineto
0 exch rlineto
100 div setgray fill 0 setgray } bind def
/Tm matrix def
/Ve { Tm currentmatrix pop
translate scale newpath 0 0 .5 0 360 arc closepath
Tm setmatrix
} bind def
/Vf { currentgray exch setgray fill setgray } bind def
a<EFBFBD>/landscape false def
/errorBUF 200 string def
/errorNL { currentpoint 10 sub exch pop 72 exch moveto } def
errordict begin /handleerror {
initmatrix /Courier findfont 10 scalefont setfont
newpath 72 720 moveto $error begin /newerror false def
(PostScript Error) show errorNL errorNL
(Error: ) show
/errorname load errorBUF cvs show errorNL errorNL
(Command: ) show
/command load dup type /stringtype ne { errorBUF cvs } if show
errorNL errorNL
(VMstatus: ) show
vmstatus errorBUF cvs show ( bytes available, ) show
errorBUF cvs show ( bytes used at level ) show
errorBUF cvs show errorNL errorNL
(Operand stargck: ) show errorNL /ostargck load {
dup type /stringtype ne { errorBUF cvs } if 72 0 rmoveto show errorNL
} forall errorNL
(Execution stargck: ) show errorNL /estargck load {
dup type /stringtype ne { errorBUF cvs } if 72 0 rmoveto show errorNL
} forall
end showpage
} def end
)
r<00>rZ_utilr<00>objectrrrZERROR_PSr
r
r
r <00><module>s  "