hyb
2026-01-07 c7f60dc7e9a36596f0e0d1787bd0cca4e9b57bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Ë
³òúh.ãó¤—dZddlmZddlmZmZmZddlmZm    Z    m
Z
m Z m Z ddl mZmZGd„d«ZGd    „d
«ZGd „d «ZGd „d«Zy)z]
(Experimental) WCK-style drawing interface operations
 
.. seealso:: :py:mod:`PIL.ImageDraw`
é)Ú annotations)ÚAnyÚAnyStrÚBinaryIOé)ÚImageÚ
ImageColorÚ    ImageDrawÚ    ImageFontÚ    ImagePath)ÚCoordsÚStrOrBytesPathcó—eZdZdZddd„Zy)ÚPenz"Stores an outline color and width.cóF—tj|«|_||_y©N)r    ÚgetrgbÚcolorÚwidth)ÚselfrrÚopacitys    úAH:\Change_password\venv_build\Lib\site-packages\PIL/ImageDraw2.pyÚ__init__z Pen.__init__$s€Ü×&Ñ& uÓ-ˆŒ
؈
óN)réÿ)rÚstrrÚintrrÚreturnÚNone©Ú__name__Ú
__module__Ú __qualname__Ú__doc__r©rrrr!s
„Ù,õrrcó—eZdZdZddd„Zy)ÚBrushzStores a fill colorcó8—tj|«|_yr)r    rr)rrrs   rrzBrush.__init__,s€Ü×&Ñ& uÓ-ˆ
rN)r)rrrrrrr r%rrr'r')s
„Ùõ.rr'có*—eZdZdZ    d                            dd„Zy)ÚFontz Stores a TrueType font and colorcón—tj|«|_tj||«|_yr)r    rrr ÚtruetypeÚfont)rrÚfileÚsizes    rrz Font.__init__3s*€ô ×&Ñ& uÓ-ˆŒ
Ü×&Ñ& t¨TÓ2ˆ    rN)é )rrr.zStrOrBytesPath | BinaryIOr/Úfloatrrr r%rrr*r*0s1„Ù*ðJLð3Øð3Ø 9ð3ØAFð3à     ô3rr*có—eZdZdZ        d                            dd„Zdd„Z    d                                            dd„Zdd„Z                                                dd„Z                                                dd„Z    dd    „Z
dd
„Z                                                 dd „Z dd „Z dd „Zdd„Z                                dd„Zdd„Zy)ÚDrawz4
    (Experimental) WCK-style drawing interface
    NcóÀ—t|t«r&|€ d}t|«‚tj|||«}t j |«|_||_d|_    y)Nz>If image argument is mode string, size must be a list or tuple)
Ú
isinstancerÚ
ValueErrorrÚnewr
r3ÚdrawÚimageÚ    transform)rr9r/rÚmsgs     rrz Draw.__init__@sR€ô eœSÔ !؈|ØVÜ  “oÐ%Ü—I‘I˜e T¨5Ó1ˆEÜ—N‘N 5Ó)ˆŒ    ØˆŒ
ØQUˆrcó—|jSr)r9)rs rÚflushz
Draw.flushOs €Øz‰zÐrc ó~—dx}}d}t|t«r|j}|j}n(t|t«r|j}|j}t|t«r |j}nt|t«r |j}|j
r2t j|«}    |    j |j
«|    }|dvr|jd|«n$|jd|«|jd|«|dk(r|jd|«t|j|«|fi|¤Žy)Nr)ÚarcÚlineÚfillÚoutliner@r) r5rrrr'r:r ÚPathÚ
setdefaultÚgetattrr8)
rÚopÚxyÚpenÚbrushÚkwargsrBrArÚpaths
          rÚrenderz Draw.renderRs€ðЈ$ØˆÜ cœ3Ô Ø—i‘iˆGØ—I‘I‰EÜ ˜œsÔ #Ø—k‘kˆGØ—K‘KˆEÜ eœUÔ #Ø—;‘;‰DÜ ˜œUÔ #Ø—9‘9ˆDà >Š>Ü—>‘> "Ó%ˆDØ N‰N˜4Ÿ>™>Ô *؈Bà Ñ  Ø × Ñ ˜f gÕ .à × Ñ ˜f dÔ +Ø × Ñ ˜i¨Ô 1Ø Š<Ø × Ñ ˜g uÔ -ØŒ—    ‘    ˜2Ó˜rÑ, VÓ,rcó(—|\}}dd|dd|f|_y)zSets a transformation offset.rrN)r:)rÚoffsetÚxoffsetÚyoffsets    rÚ settransformzDraw.settransformvs €à#ш'ؘQ ¨¨A¨wÐ7ˆrcó6—|jd||g|¢­||dœŽy)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?©ÚstartÚendN©rL©rrGrHrTrUÚoptionss      rr?zDraw.arc{s"€ð    ˆ ‰ E˜2˜sÐC WÑC°E¸sÔCrcó6—|jd||g|¢­||dœŽy)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`
        ÚchordrSNrVrWs      rrZz
Draw.chord‹s"€ð    ˆ ‰ G˜R ÐE wÑE°eÀÔErcó.—|jd||g|¢­Žy)z‚
        Draws an ellipse inside the given bounding box.
 
        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.ellipse`
        ÚellipseNrV©rrGrHrXs    rr\z Draw.ellipse›s€ð     ˆ ‰ I˜r 3Ð1¨Ô1rcó.—|jd||g|¢­Žy)zˆ
        Draws a line between the coordinates in the ``xy`` list.
 
        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.line`
        r@NrVr]s    rr@z    Draw.line£s€ð     ˆ ‰ F˜B Ð. gÔ.rcó6—|jd||g|¢­||dœŽy)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`
        ÚpieslicerSNrVrWs      rr`z Draw.pieslice«s"€ð    ˆ ‰ J  CÐH¨'ÑH¸ÀCÔHrcó.—|jd||g|¢­Žy)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`
        ÚpolygonNrVr]s    rrbz Draw.polygon»s€ð    ˆ ‰ I˜r 3Ð1¨Ô1rcó.—|jd||g|¢­Žy)zg
        Draws a rectangle.
 
        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.rectangle`
        Ú    rectangleNrVr]s    rrdzDraw.rectangleÈs€ð     ˆ ‰ K  SÐ3¨7Ô3rcóæ—|jr2tj|«}|j|j«|}|jj    |||j
|j ¬«y)zw
        Draws the string at the given position.
 
        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.text`
        )r-rAN)r:r rCr8Útextr-r©rrGrfr-rKs     rrfz    Draw.textÐsN€ð >Š>Ü—>‘> "Ó%ˆDØ N‰N˜4Ÿ>™>Ô *؈BØ     ‰    ‰r˜4 d§i¡i°d·j±jˆÕArcóΗ|jr2tj|«}|j|j«|}|jj    |||j
¬«S)zÁ
        Returns bounding box (in pixels) of given text.
 
        :return: ``(left, top, right, bottom)`` bounding box
 
        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.textbbox`
        ©r-)r:r rCr8Útextbboxr-rgs     rrjz Draw.textbboxÜsN€ð >Š>Ü—>‘> "Ó%ˆDØ N‰N˜4Ÿ>™>Ô *؈B؏y‰y×!Ñ! " d°·±Ð!Ó;Ð;rcóP—|jj||j¬«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`
        ri)r8Ú
textlengthr-)rrfr-s   rrlzDraw.textlengthìs"€ðy‰y×#Ñ# D¨t¯y©yÐ#Ó9Ð9r)NN)r9zImage.Image | strr/z"tuple[int, int] | list[int] | Nonerz&float | tuple[float, ...] | str | Nonerr)rz Image.Imager) rFrrGr rHúPen | Brush | NonerIzBrush | Pen | NonerJrrr)rNútuple[float, float]rr) rGr rHrmrTr1rUr1rXrrr)rGr rHrmrXrrr)rGrnrfrr-r*rr)rGrnrfrr-r*rz!tuple[float, float, float, float])rfrr-r*rr1)r!r"r#r$rr=rLrQr?rZr\r@r`rbrdrfrjrlr%rrr3r3;s¤„ñð48Ø8<ð     Và ð Vð1ð Vð6ð     Vð
 
ó Vóð%)ð "-à ð"-ð ð"-ð ð    "-ð
"ð "-ð ð "-ð
ó"-óH8ð
Dà ðDð ðDðð    Dð
ð Dð ð Dð
óDð Fà ðFð ðFðð    Fð
ð Fð ð Fð
óFó 2ó/ðIà ðIð ðIðð    Ið
ð Ið ð Ið
óIó  2ó4ó
Bð<Ø%ð<Ø-3ð<Ø;?ð<à    *ó<ô :rr3N)r$Ú
__future__rÚtypingrrrÚrr    r
r r Ú_typingr rrr'r*r3r%rrú<module>rssHðñ(õ
#ç(Ñ(ç@Õ@ß+÷ñ÷.ñ.÷3ñ3÷x:òx:r