Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/PIL/__pycache__/ImageChops.cpython-37.pyc

151 lines
7.0 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
(U<>]~<00>@s<>ddlmZdd<03>Zdd<05>Zdd<07>Zdd <09>Zd
d <0B>Zd d <0A>Zdd<0F>Zdd<11>Z d)dd<15>Z
d*dd<17>Z dd<19>Z dd<1B>Z dd<1D>Zdd<1F>Zd d!<21>Zd"d#<23>Zd$d%<25>Zd+d'd(<28>Zd&S),<2C>)<01>ImagecCst<00>d|j|<01>S)zVFill a channel with a given grey level.
:rtype: :py:class:`~PIL.Image.Image`
<20>L)r<00>new<65>size)<02>image<67>value<75>r<00>2/tmp/pip-install-pc7tm5jb/Pillow/PIL/ImageChops.py<70>constantsr
cCs|<00><00>S)ziCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`.
:rtype: :py:class:`~PIL.Image.Image`
)<01>copy)rrrr <00> duplicatesr cCs|<00><00>|<00>|j<02><03><00>S)z<>
Invert an image (channel).
.. code-block:: python
out = MAX - image
:rtype: :py:class:`~PIL.Image.Image`
)<04>load<61>_new<65>imZ chop_invert)rrrr <00>invert's rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)a
Compares the two images, pixel by pixel, and returns a new image containing
the lighter values. At least one of the images must have mode "1".
.. code-block:: python
out = max(image1, image2)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZ chop_lighter)<02>image1<65>image2rrr <00>lighter6s rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)a
Compares the two images, pixel by pixel, and returns a new image containing
the darker values. At least one of the images must have mode "1".
.. code-block:: python
out = min(image1, image2)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZ chop_darker)rrrrr <00>darkerGs rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>
Returns the absolute value of the pixel-by-pixel difference between the two
images. At least one of the images must have mode "1".
.. code-block:: python
out = abs(image1 - image2)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_difference)rrrrr <00>
differenceXs rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)ai
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. At least
one of the images must have mode "1".
.. code-block:: python
out = image1 * image2 / MAX
:rtype: :py:class:`~PIL.Image.Image`
)r rrZ chop_multiply)rrrrr <00>multiplyisrcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>
Superimposes two inverted images on top of each other. At least one of the
images must have mode "1".
.. code-block:: python
out = MAX - ((MAX - image1) * (MAX - image2) / MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZ chop_screen)rrrrr <00>screen}s r<00><00>?<3F>cCs(|<00><00>|<01><00>|<00>|j<02>|j||<03><03>S)a5
Adds two images, dividing the result by scale and adding the
offset. If omitted, scale defaults to 1.0, and offset to 0.0.
At least one of the images must have mode "1".
.. code-block:: python
out = ((image1 + image2) / scale + offset)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_add)rr<00>scale<6C>offsetrrr <00>add<64>s rcCs(|<00><00>|<01><00>|<00>|j<02>|j||<03><03>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. At least one of the
images must have mode "1".
.. code-block:: python
out = ((image1 - image2) / scale + offset)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZ chop_subtract)rrrrrrr <00>subtract<63>s rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>Add two images, without clipping the result. At least one of the images
must have mode "1".
.. code-block:: python
out = ((image1 + image2) % MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_add_modulo)rrrrr <00>
add_modulo<EFBFBD>s rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>Subtract two images, without clipping the result. At least one of the
images must have mode "1".
.. code-block:: python
out = ((image1 - image2) % MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_subtract_modulo)rrrrr <00>subtract_modulo<6C>s rcCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>Logical AND between two images. At least one of the images must have
mode "1".
.. code-block:: python
out = ((image1 and image2) % MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_and)rrrrr <00> logical_and<6E>s r cCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>Logical OR between two images. At least one of the images must have
mode "1".
.. code-block:: python
out = ((image1 or image2) % MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_or)rrrrr <00>
logical_or<EFBFBD>s r!cCs$|<00><00>|<01><00>|<00>|j<02>|j<02><01>S)z<>Logical XOR between two images. At least one of the images must have
mode "1".
.. code-block:: python
out = ((bool(image1) != bool(image2)) % MAX)
:rtype: :py:class:`~PIL.Image.Image`
)r rrZchop_xor)rrrrr <00> logical_xor<6F>s r"cCst<00>|||<02>S)z<>Blend images using constant transparency weight. Alias for
:py:meth:`PIL.Image.Image.blend`.
:rtype: :py:class:`~PIL.Image.Image`
)r<00>blend)rr<00>alpharrr r#sr#cCst<00>|||<02>S)z<>Create composite using transparency mask. Alias for
:py:meth:`PIL.Image.Image.composite`.
:rtype: :py:class:`~PIL.Image.Image`
)r<00> composite)rr<00>maskrrr r% sr%NcCs(|dkr |}|<00><00>|<00>|j<02>||<02><02>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)r rrr)rZxoffsetZyoffsetrrr rs r)rr)rr)N)<14>rr
r rrrrrrrrrrr r!r"r#r%rrrrr <00><module>s$