Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/ImageDraw2.cpython-310.pyc

104 lines
7.1 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j:<00>@s<>dZddlmZddlmZmZmZddlmZm Z m
Z
m Z m Z ddl mZmZGdd<08>d<08>ZGd d
<EFBFBD>d
<EFBFBD>ZGd d <0C>d <0C>ZGd d<0E>d<0E>ZdS)z]
(Experimental) WCK-style drawing interface operations
.. seealso:: :py:mod:`PIL.ImageDraw`
<EFBFBD>)<01> annotations)<03>Any<6E>AnyStr<74>BinaryIO<49>)<05>Image<67>
ImageColor<EFBFBD> ImageDraw<61> ImageFont<6E> ImagePath)<02>Coords<64>StrOrBytesPathc@seZdZdZddd d <0C>Zd S)<10>Penz"Stores an outline color and width.r<00><><00>color<6F>str<74>width<74>int<6E>opacity<74>return<72>NonecCst<00>|<01>|_||_dS<00>N)r<00>getrgbrr)<04>selfrrr<00>r<00>q/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/ImageDraw2.py<70>__init__%s 
z Pen.__init__N)rr)rrrrrrrr<00><05>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrrrr"<00>rc@seZdZdZd d d d
<EFBFBD>Zd S)<0E>BrushzStores a fill colorrrrrrrrcCst<00>|<01>|_dSr)rrr)rrrrrrr-szBrush.__init__N)r)rrrrrrrrrrrr#*r"r#c@seZdZdZ ddd d <0C>Zd S)<10>Fontz Stores a TrueType font and color<6F> rr<00>file<6C>StrOrBytesPath | BinaryIO<49>size<7A>floatrrcCst<00>|<01>|_t<03>||<03>|_dSr)rrrr
<00>truetype<70>font)rrr&r(rrrr4s z Font.__init__N)r%)rrr&r'r(r)rrrrrrrr$1s<10>r$c@s<>eZdZdZ  d=d>d d <0C>Zd?dd<0F>Z d@dAdd<1B>ZdBdd<1F>ZdCd$d%<25>ZdCd&d'<27>Z dDd(d)<29>Z
dDd*d+<2B>Z dCd,d-<2D>Z dDd.d/<2F>Z dDd0d1<64>ZdEd6d7<64>ZdFd9d:<3A>ZdGd;d<<3C>ZdS)H<>Drawz4
(Experimental) WCK-style drawing interface
N<>image<67>Image.Image | strr(<00>"tuple[int, int] | list[int] | Noner<00>&float | tuple[float, ...] | str | NonerrcCsHt|t<01>r|durd}t|<04><01>t<03>|||<03>}t<05>|<01>|_||_d|_ dS)Nz>If image argument is mode string, size must be a list or tuple)
<EFBFBD>
isinstancer<00>
ValueErrorr<00>newr r,<00>drawr-<00> transform)rr-r(r<00>msgrrrrAs
 
z Draw.__init__<5F> Image.ImagecCs|jSr)r-)rrrr<00>flushPsz
Draw.flush<73>opr<00>xyr <00>pen<65>Pen | Brush | None<6E>brush<73>Brush | Pen | None<6E>kwargsrc
Ks<>d}}d}t|t<01>r|j}|j}n t|t<01>r|j}|j}t|t<04>r&|j}nt|t<04>r.|j}|jr>t<06>|<02>} | <09>|j<05>| }|dvrI|<05>d|<06>n |<05>d|<07>|<05>d|<06>|dkr_|<05>d|<08>t |j
|<01>|fi|<05><01>dS)Nr)<02>arc<72>line<6E>fill<6C>outlinerAr) r1rrrr#r5r <00>Path<74>
setdefault<EFBFBD>getattrr4)
rr9r:r;r=r?rCrBr<00>pathrrr<00>renderSs. 




    z Draw.render<65>offset<65>tuple[float, float]cCs|\}}dd|dd|f|_dS)zSets a transformation offset.rrN)r5)rrI<00>xoffset<65>yoffsetrrr<00> settransformwszDraw.settransform<72>startr)<00>end<6E>optionscG<01>"|jd||g|<05>R||d<02><02>dS)z<>
Draws an arc (a portion of a circle outline) between the start and end
angles, inside the given bounding box.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.arc`
r@<00>rNrON<>rH<00>rr:r;rNrOrPrrrr@|<00>"zDraw.arccGrQ)z<>
Same as :py:meth:`~PIL.ImageDraw2.Draw.arc`, but connects the end points
with a straight line.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.chord`
<20>chordrRNrSrTrrrrV<00>rUz
Draw.chordcG<01>|jd||g|<03>R<00>dS)z<>
Draws an ellipse inside the given bounding box.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.ellipse`
<20>ellipseNrS<00>rr:r;rPrrrrX<00><00>z Draw.ellipsecGrW)z<>
Draws a line between the coordinates in the ``xy`` list.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.line`
rANrSrYrrrrA<00>rZz Draw.linecGrQ)z<>
Same as arc, but also draws straight lines between the end points and the
center of the bounding box.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.pieslice`
<20>pieslicerRNrSrTrrrr[<00>rUz Draw.pieslicecGrW)a 
Draws a polygon.
The polygon outline consists of straight lines between the given
coordinates, plus a straight line between the last and the first
coordinate.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.polygon`
<20>polygonNrSrYrrrr\<00>s z Draw.polygoncGrW)zg
Draws a rectangle.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.rectangle`
<20> rectangleNrSrYrrrr]<00>rZzDraw.rectangle<6C>textrr+r$cCs<|jrt<01>|<01>}|<04>|j<00>|}|jj|||j|jd<01>dS)zw
Draws the string at the given position.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.text`
)r+rBN)r5r rDr4r^r+r<00>rr:r^r+rGrrrr^<00>s

 z Draw.text<78>!tuple[float, float, float, float]cCs4|jrt<01>|<01>}|<04>|j<00>|}|jj|||jd<01>S)z<>
Returns bounding box (in pixels) of given text.
:return: ``(left, top, right, bottom)`` bounding box
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.textbbox`
<20>r+)r5r rDr4<00>textbboxr+r_rrrrb<00>s

 z Draw.textbboxcCs|jj||jd<01>S)z<>
Returns length (in pixels) of given text.
This is the amount by which following text should be offset.
.. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.textlength`
ra)r4<00>
textlengthr+)rr^r+rrrrc<00>szDraw.textlength)NN)r-r.r(r/rr0rr)rr7r) r9rr:r r;r<r=r>r?rrr)rIrJrr) r:r r;r<rNr)rOr)rPrrr)r:r r;r<rPrrr)r:rJr^rr+r$rr)r:rJr^rr+r$rr`)r^rr+r$rr))rrr r!rr8rHrMr@rVrXrAr[r\r]r^rbrcrrrrr,<s& <0C>
 <0C>
$







r,N)r!<00>
__future__r<00>typingrrr<00>rrr r
r <00>_typingr r rr#r$r,rrrr<00><module>s