File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/ImageChops.cpython-310.pyc
o
we[ � @ s� d dl mZ dd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Zdd� Z dd� Z
dd� Zdd� Zd/dd�Z
d/dd�Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd0d-d.�Zd,S )1� )�Imagec C s t �d| j|�S )zVFill a channel with a given grey level.
:rtype: :py:class:`~PIL.Image.Image`
�L)r �new�size)�image�value� r �G/home/arjun/projects/env/lib/python3.10/site-packages/PIL/ImageChops.py�constant s r
c C s | � � S )ziCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`.
:rtype: :py:class:`~PIL.Image.Image`
)�copy�r r r r � duplicate s r
c C s | � � | �| j�� �S )zl
Invert an image (channel). ::
out = MAX - image
:rtype: :py:class:`~PIL.Image.Image`
)�load�_new�im�chop_invertr r r r �invert'