ó <×ï[c@sÅddlmZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Z d d d „Z d d d „Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zdd„ZdS(i(tImagecCstjd|j|ƒS(sVFill a channel with a given grey level. :rtype: :py:class:`~PIL.Image.Image` tL(Rtnewtsize(timagetvalue((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytconstantscCs |jƒS(siCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`. :rtype: :py:class:`~PIL.Image.Image` (tcopy(R((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt duplicatescCs |jƒ|j|jjƒƒS(s… Invert an image (channel). .. code-block:: python out = MAX - image :rtype: :py:class:`~PIL.Image.Image` (tloadt_newtimt chop_invert(R((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytinvert's cCs0|jƒ|jƒ|j|jj|jƒƒS(sÖ 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` (R R R t chop_lighter(timage1timage2((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytlighter6s  cCs0|jƒ|jƒ|j|jj|jƒƒS(sÕ 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` (R R R t chop_darker(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytdarkerGs  cCs0|jƒ|jƒ|j|jj|jƒƒS(sË 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` (R R R tchop_difference(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt differenceXs  cCs0|jƒ|jƒ|j|jj|jƒƒS(s6 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` (R R R t chop_multiply(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytmultiplyis  cCs0|jƒ|jƒ|j|jj|jƒƒS(sà 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` (R R R t chop_screen(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytscreen|s  gð?icCs6|jƒ|jƒ|j|jj|j||ƒƒS(s 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` (R R R tchop_add(RRtscaletoffset((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytaddŒs  cCs6|jƒ|jƒ|j|jj|j||ƒƒS(s 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` (R R R t chop_subtract(RRRR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytsubtracts  cCs0|jƒ|jƒ|j|jj|jƒƒS(s Add two images, without clipping the result. .. code-block:: python out = ((image1 + image2) % MAX) :rtype: :py:class:`~PIL.Image.Image` (R R R tchop_add_modulo(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt add_modulo®s  cCs0|jƒ|jƒ|j|jj|jƒƒS(s¥Subtract two images, without clipping the result. .. code-block:: python out = ((image1 - image2) % MAX) :rtype: :py:class:`~PIL.Image.Image` (R R R tchop_subtract_modulo(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pytsubtract_modulo½s  cCs0|jƒ|jƒ|j|jj|jƒƒS(s•Logical AND between two images. .. code-block:: python out = ((image1 and image2) % MAX) :rtype: :py:class:`~PIL.Image.Image` (R R R tchop_and(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt logical_andÌs  cCs0|jƒ|jƒ|j|jj|jƒƒS(s“Logical OR between two images. .. code-block:: python out = ((image1 or image2) % MAX) :rtype: :py:class:`~PIL.Image.Image` (R R R tchop_or(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt logical_orÛs  cCs0|jƒ|jƒ|j|jj|jƒƒS(s Logical XOR between two images. .. code-block:: python out = ((bool(image1) != bool(image2)) % MAX) :rtype: :py:class:`~PIL.Image.Image` (R R R tchop_xor(RR((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyt logical_xorês  cCstj|||ƒS(sBlend images using constant transparency weight. Alias for :py:meth:`PIL.Image.Image.blend`. :rtype: :py:class:`~PIL.Image.Image` (Rtblend(RRtalpha((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyR*ùscCstj|||ƒS(sŒCreate composite using transparency mask. Alias for :py:meth:`PIL.Image.Image.composite`. :rtype: :py:class:`~PIL.Image.Image` (Rt composite(RRtmask((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyR,scCs;|dkr|}n|jƒ|j|jj||ƒƒS(s~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(tNoneR R R R(Rtxoffsettyoffset((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyR s   N(tRRRR RRRRRRRR!R#R%R'R)R*R,R.R(((s./tmp/pip-build-SKekGm/pillow/PIL/ImageChops.pyts$