%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/PIL/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/PIL/__pycache__/ImageTransform.cpython-312.pyc

�

��e\���ddlmZddlmZddlmZGd�dej�ZGd�de�ZGd	�d
e�Z	Gd�de�Z
Gd
�de�Zy)�)�annotations)�Sequence�)�Imagec�@�eZdZUded<dd�Zdd�Z								d	d�Zy)
�	TransformzImage.Transform�methodc��||_y�N)�data)�selfrs  �4/usr/lib/python3/dist-packages/PIL/ImageTransform.py�__init__zTransform.__init__s	����	�c�2�|j|jfSr)r	r)r
s r�getdatazTransform.getdatas���{�{�D�I�I�%�%rc�R�|j�\}}|j|||fi|��Sr)r�	transform)r
�size�image�optionsr	rs      rrzTransform.transforms-���|�|�~�����u���t�V�T�=�W�=�=rN)rz
Sequence[int]�return�None)rztuple[int, Sequence[int]])rztuple[int, int]r�Image.Imagerz2dict[str, str | int | tuple[int, ...] | list[int]]rr)�__name__�
__module__�__qualname__�__annotations__rrr�rrrrs>�����&�>��>��>�F�	>�

�>rrc�<�eZdZdZej
jZy)�AffineTransformaS
    Define an affine image transform.

    This function takes a 6-tuple (a, b, c, d, e, f) which contain the first
    two rows from an affine transform matrix. For each pixel (x, y) in the
    output image, the new value is taken from a position (a x + b y + c,
    d x + e y + f) in the input image, rounded to nearest pixel.

    This function can be used to scale, translate, rotate, and shear the
    original image.

    See :py:meth:`~PIL.Image.Image.transform`

    :param matrix: A 6-tuple (a, b, c, d, e, f) containing the first two rows
        from an affine transform matrix.
    N)rrr�__doc__rr�AFFINEr	rrrr!r!*s���"�_�_�
#�
#�Frr!c�<�eZdZdZej
jZy)�ExtentTransforma�
    Define a transform to extract a subregion from an image.

    Maps a rectangle (defined by two corners) from the image to a rectangle of
    the given size. The resulting image will contain data sampled from between
    the corners, such that (x0, y0) in the input image will end up at (0,0) in
    the output image, and (x1, y1) at size.

    This method can be used to crop, stretch, shrink, or mirror an arbitrary
    rectangle in the current image. It is slightly slower than crop, but about
    as fast as a corresponding resize operation.

    See :py:meth:`~PIL.Image.Image.transform`

    :param bbox: A 4-tuple (x0, y0, x1, y1) which specifies two points in the
        input image's coordinate system. See :ref:`coordinate-system`.
    N)rrrr"rr�EXTENTr	rrrr%r%?s���$�_�_�
#�
#�Frr%c�<�eZdZdZej
jZy)�
QuadTransforma�
    Define a quad image transform.

    Maps a quadrilateral (a region defined by four corners) from the image to a
    rectangle of the given size.

    See :py:meth:`~PIL.Image.Image.transform`

    :param xy: An 8-tuple (x0, y0, x1, y1, x2, y2, x3, y3) which contain the
        upper left, lower left, lower right, and upper right corner of the
        source quadrilateral.
    N)rrrr"rr�QUADr	rrrr(r(Us����_�_�
!�
!�Frr(c�<�eZdZdZej
jZy)�
MeshTransformz�
    Define a mesh image transform.  A mesh transform consists of one or more
    individual quad transforms.

    See :py:meth:`~PIL.Image.Image.transform`

    :param data: A list of (bbox, quad) tuples.
    N)rrrr"rr�MESHr	rrrr+r+fs����_�_�
!�
!�Frr+N)�
__future__r�typingr�r�ImageTransformHandlerrr!r%r(r+rrr�<module>r1sR��#���>��+�+�>�($�i�$�*$�i�$�,"�I�"�"
"�I�
"r

Zerion Mini Shell 1.0