403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /tmp/calpy/PIL/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/calpy/PIL/__pycache__/ImageDraw2.cpython-311.pyc
�

Υ=j:���dZddlmZddlmZmZmZddlmZm	Z	m
Z
mZmZddl
mZmZGd�d��ZGd	�d
��ZGd�d��ZGd
�d��ZdS)z]
(Experimental) WCK-style drawing interface operations

.. seealso:: :py:mod:`PIL.ImageDraw`
�)�annotations)�Any�AnyStr�BinaryIO�)�Image�
ImageColor�	ImageDraw�	ImageFont�	ImagePath)�Coords�StrOrBytesPathc��eZdZdZd
dd�ZdS)�Penz"Stores an outline color and width.r��color�str�width�int�opacity�return�Nonec�F�tj|��|_||_dS�N)r	�getrgbrr)�selfrrrs    �A/tmp/claude-1015/pip-target-jmvfl800/lib/python/PIL/ImageDraw2.py�__init__zPen.__init__%s���&�u�-�-��
���
�
�
�N)rr)rrrrrrrr��__name__�
__module__�__qualname__�__doc__r�rrrr"s3������,�,�������rrc��eZdZdZddd	�Zd
S)
�BrushzStores a fill colorrrrrrrrc�8�tj|��|_dSr)r	rr)rrrs   rrzBrush.__init__-s���&�u�-�-��
�
�
rN)r)rrrrrrr r%rrr'r'*s3��������.�.�.�.�.�.�.rr'c��eZdZdZ	d
dd�ZdS)�Fontz Stores a TrueType font and color�rr�file�StrOrBytesPath | BinaryIO�size�floatrrc�l�tj|��|_tj||��|_dSr)r	rrr�truetype�font)rrr,r.s    rrz
Font.__init__4s.�� �&�u�-�-��
��&�t�T�2�2��	�	�	rN)r+)rrr,r-r.r/rrr r%rrr*r*1s:������*�*�JL�3�3�3�3�3�3�3rr*c��eZdZdZ		d/d0d�Zd1d
�Z	d2d3d�Zd4d�Zd5d �Zd5d!�Z	d6d"�Z
d6d#�Zd5d$�Zd6d%�Z
d6d&�Zd7d+�Zd8d-�Zd9d.�ZdS):�Drawz4
    (Experimental) WCK-style drawing interface
    N�image�Image.Image | strr.�"tuple[int, int] | list[int] | Noner�&float | tuple[float, ...] | str | Nonerrc���t|t��r)|�d}t|���tj|||��}tj|��|_||_d|_	dS)Nz>If image argument is mode string, size must be a list or tuple)
�
isinstancer�
ValueErrorr�newr
r4�drawr5�	transform)rr5r.r�msgs     rrz
Draw.__init__Asb���e�S�!�!�	2��|�V�� ��o�o�%��I�e�T�5�1�1�E��N�5�)�)��	���
�QU����r�Image.Imagec��|jSr)r5)rs r�flushz
Draw.flushPs
���z�r�opr�xyr
�pen�Pen | Brush | None�brush�Brush | Pen | None�kwargsrc�~�dx}}d}t|t��r|j}|j}n#t|t��r|j}|j}t|t��r|j}nt|t��r|j}|jr0t
j|��}	|	�|j��|	}|dvr|�d|��n,|�d|��|�d|��|dkr|�d|��t|j
|��|fi|��dS)Nr)�arc�line�fill�outlinerLr)r:rrrr'r>r�Path�
setdefault�getattrr=)
rrCrDrErGrIrNrMr�paths
          r�renderzDraw.renderSsT�����$����c�3���	 ��i�G��I�E�E�
��s�
#�
#�	 ��k�G��K�E��e�U�#�#�	��;�D�D�
��U�
#�
#�	��9�D��>�	��>�"�%�%�D��N�N�4�>�*�*�*��B�
�� � ����f�g�.�.�.�.����f�d�+�+�+����i��1�1�1�
��<�<����g�u�-�-�-����	�2���r�,�,�V�,�,�,�,�,r�offset�tuple[float, float]c�*�|\}}dd|dd|f|_dS)zSets a transformation offset.rrN)r>)rrT�xoffset�yoffsets    r�settransformzDraw.settransformws$��!�����Q���A�w�7����r�startr/�end�optionsc�.�|jd||g|�R||d��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`
        rK�rZr[N�rS�rrDrErZr[r\s      rrKzDraw.arc|s2��	���E�2�s�C�W�C�C�E�s�C�C�C�C�C�Crc�.�|jd||g|�R||d��dS)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`
        �chordr^Nr_r`s      rrbz
Draw.chord�s2��	���G�R��E�w�E�E�e��E�E�E�E�E�Erc�&�|jd||g|�R�dS)z�
        Draws an ellipse inside the given bounding box.

        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.ellipse`
        �ellipseNr_�rrDrEr\s    rrdzDraw.ellipse�s(��	���I�r�3�1��1�1�1�1�1�1rc�&�|jd||g|�R�dS)z�
        Draws a line between the coordinates in the ``xy`` list.

        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.line`
        rLNr_res    rrLz	Draw.line�s(��	���F�B��.�g�.�.�.�.�.�.rc�.�|jd||g|�R||d��dS)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`
        �pieslicer^Nr_r`s      rrhz
Draw.pieslice�s2��	���J��C�H�'�H�H��C�H�H�H�H�H�Hrc�&�|jd||g|�R�dS)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`
        �polygonNr_res    rrjzDraw.polygon�s(��	���I�r�3�1��1�1�1�1�1�1rc�&�|jd||g|�R�dS)zg
        Draws a rectangle.

        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.rectangle`
        �	rectangleNr_res    rrlzDraw.rectangle�s(��	���K��S�3�7�3�3�3�3�3�3r�textrr2r*c���|jr0tj|��}|�|j��|}|j�|||j|j���dS)zw
        Draws the string at the given position.

        .. seealso:: :py:meth:`PIL.ImageDraw.ImageDraw.text`
        )r2rMN)r>rrOr=rmr2r�rrDrmr2rRs     rrmz	Draw.text�s\���>�	��>�"�%�%�D��N�N�4�>�*�*�*��B��	���r�4�d�i�d�j��A�A�A�A�Ar�!tuple[float, float, float, float]c��|jr0tj|��}|�|j��|}|j�|||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`
        �r2)r>rrOr=�textbboxr2ros     rrsz
Draw.textbbox�sU���>�	��>�"�%�%�D��N�N�4�>�*�*�*��B��y�!�!�"�d���!�;�;�;rc�D�|j�||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`
        rr)r=�
textlengthr2)rrmr2s   rruzDraw.textlength�s!���y�#�#�D�t�y�#�9�9�9r)NN)r5r6r.r7rr8rr)rr@r)rCrrDr
rErFrGrHrIrrr)rTrUrr)rDr
rErFrZr/r[r/r\rrr)rDr
rErFr\rrr)rDrUrmrr2r*rr)rDrUrmrr2r*rrp)rmrr2r*rr/)r!r"r#r$rrBrSrYrKrbrdrLrhrjrlrmrsrur%rrr4r4<sc��������48�8<�	
V�
V�
V�
V�
V�����%)�"-�"-�"-�"-�"-�H8�8�8�8�
D�D�D�D� F�F�F�F� 2�2�2�2�/�/�/�/�I�I�I�I� 2�2�2�2�4�4�4�4�
B�
B�
B�
B�<�<�<�<� :�:�:�:�:�:rr4N)r$�
__future__r�typingrrr�rr	r
rr�_typingr
rrr'r*r4r%rr�<module>rzs7��(��#�"�"�"�"�"�(�(�(�(�(�(�(�(�(�(�@�@�@�@�@�@�@�@�@�@�@�@�@�@�+�+�+�+�+�+�+�+���������.�.�.�.�.�.�.�.�3�3�3�3�3�3�3�3�x:�x:�x:�x:�x:�x:�x:�x:�x:�x:r

Youez - 2016 - github.com/yon3zu
LinuXploit