403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/ImageChops.cpython-39.pyc
a

h�a��@s�ddlmZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zd/dd�Z
d0dd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd1d-d.�Zd,S)2�)�ImagecCst�d|j|�S)zVFill a channel with a given grey level.

    :rtype: :py:class:`~PIL.Image.Image`
    �L)r�new�size)�image�value�r�2/usr/lib/python3.9/site-packages/PIL/ImageChops.py�constantsr
cCs|��S)ziCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`.

    :rtype: :py:class:`~PIL.Image.Image`
    )�copy�rrrr	�	duplicatesr
cCs|��|�|j���S)z�
    Invert an image (channel).

    .. code-block:: python

        out = MAX - image

    :rtype: :py:class:`~PIL.Image.Image`
    )�load�_new�imZchop_invertrrrr	�invert'srcCs$|��|��|�|j�|j��S)z�
    Compares the two images, pixel by pixel, and returns a new image containing
    the lighter values.

    .. code-block:: python

        out = max(image1, image2)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_lighter��image1�image2rrr	�lighter6srcCs$|��|��|�|j�|j��S)z�
    Compares the two images, pixel by pixel, and returns a new image containing
    the darker values.

    .. code-block:: python

        out = min(image1, image2)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_darkerrrrr	�darkerGsrcCs$|��|��|�|j�|j��S)z�
    Returns the absolute value of the pixel-by-pixel difference between the two
    images.

    .. code-block:: python

        out = abs(image1 - image2)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_differencerrrr	�
differenceXsrcCs$|��|��|�|j�|j��S)a6
    Superimposes two images on top of each other.

    If you multiply an image with a solid black image, the result is black. If
    you multiply with a solid white image, the image is unaffected.

    .. code-block:: python

        out = image1 * image2 / MAX

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZ
chop_multiplyrrrr	�multiplyisrcCs$|��|��|�|j�|j��S)z�
    Superimposes two inverted images on top of each other.

    .. code-block:: python

        out = MAX - ((MAX - image1) * (MAX - image2) / MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_screenrrrr	�screen|srcCs$|��|��|�|j�|j��S)z
    Superimposes two images on top of each other using the Soft Light algorithm

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_soft_lightrrrr	�
soft_light�srcCs$|��|��|�|j�|j��S)z
    Superimposes two images on top of each other using the Hard Light algorithm

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_hard_lightrrrr	�
hard_light�srcCs$|��|��|�|j�|j��S)z|
    Superimposes two images on top of each other using the Overlay algorithm

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_overlayrrrr	�overlay�sr��?�cCs(|��|��|�|j�|j||��S)a
    Adds two images, dividing the result by scale and adding the
    offset. If omitted, scale defaults to 1.0, and offset to 0.0.

    .. code-block:: python

        out = ((image1 + image2) / scale + offset)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_add�rrZscale�offsetrrr	�add�sr!cCs(|��|��|�|j�|j||��S)a
    Subtracts two images, dividing the result by scale and adding the offset.
    If omitted, scale defaults to 1.0, and offset to 0.0.

    .. code-block:: python

        out = ((image1 - image2) / scale + offset)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZ
chop_subtractrrrr	�subtract�sr"cCs$|��|��|�|j�|j��S)z�Add two images, without clipping the result.

    .. code-block:: python

        out = ((image1 + image2) % MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_add_modulorrrr	�
add_modulo�s
r#cCs$|��|��|�|j�|j��S)z�Subtract two images, without clipping the result.

    .. code-block:: python

        out = ((image1 - image2) % MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_subtract_modulorrrr	�subtract_modulo�s
r$cCs$|��|��|�|j�|j��S)a�Logical AND between two images.

    Both of the images must have mode "1". If you would like to perform a
    logical AND on an image with a mode other than "1", try
    :py:meth:`~PIL.ImageChops.multiply` instead, using a black-and-white mask
    as the second image.

    .. code-block:: python

        out = ((image1 and image2) % MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_andrrrr	�logical_and�sr%cCs$|��|��|�|j�|j��S)z�Logical OR between two images.

    Both of the images must have mode "1".

    .. code-block:: python

        out = ((image1 or image2) % MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_orrrrr	�
logical_orsr&cCs$|��|��|�|j�|j��S)z�Logical XOR between two images.

    Both of the images must have mode "1".

    .. code-block:: python

        out = ((bool(image1) != bool(image2)) % MAX)

    :rtype: :py:class:`~PIL.Image.Image`
    )rrrZchop_xorrrrr	�logical_xorsr'cCst�|||�S)z�Blend images using constant transparency weight. Alias for
    :py:func:`PIL.Image.blend`.

    :rtype: :py:class:`~PIL.Image.Image`
    )r�blend)rrZalpharrr	r(&sr(cCst�|||�S)z�Create composite using transparency mask. Alias for
    :py:func:`PIL.Image.composite`.

    :rtype: :py:class:`~PIL.Image.Image`
    )r�	composite)rr�maskrrr	r)0sr)NcCs(|dur|}|��|�|j�||��S)a~Returns a copy of the image where data has been offset by the given
    distances. Data wraps around the edges. If ``yoffset`` is omitted, it
    is assumed to be equal to ``xoffset``.

    :param xoffset: The horizontal distance.
    :param yoffset: The vertical distance.  If omitted, both
        distances are set to the same value.
    :rtype: :py:class:`~PIL.Image.Image`
    N)rrrr )rZxoffsetZyoffsetrrr	r :sr )rr)rr)N)�rr
r
rrrrrrrrrr!r"r#r$r%r&r'r(r)r rrrr	�<module>s*		




Youez - 2016 - github.com/yon3zu
LinuXploit