K i ddlmZddlmZddZddZddZddZddZdd Z dd Z dd Z dd Z dd Z ddZ d ddZ d ddZddZddZddZddZddZddZ d dZd!d"dZy)#) annotations)ImagecDtjd|j|S)zVFill a channel with a given gray level. :rtype: :py:class:`~PIL.Image.Image` L)rnewsize)imagevalues T/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/PIL/ImageChops.pyconstantr s 99S%**e ,,c"|jS)ziCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`. :rtype: :py:class:`~PIL.Image.Image` )copyr s r duplicater s ::<rct|j|j|jjS)zl Invert an image (channel). :: out = MAX - image :rtype: :py:class:`~PIL.Image.Image` )load_newim chop_invertrs r invertr)s) JJL ::ehh**, --rc|j|j|j|jj|jS)z Compares the two images, pixel by pixel, and returns a new image containing the lighter values. :: out = max(image1, image2) :rtype: :py:class:`~PIL.Image.Image` )rrr chop_lighterimage1image2s r lighterr6s8 KKM KKM ;;vyy--fii8 99rc|j|j|j|jj|jS)z Compares the two images, pixel by pixel, and returns a new image containing the darker values. :: out = min(image1, image2) :rtype: :py:class:`~PIL.Image.Image` )rrr chop_darkerrs r darkerr!Es8 KKM KKM ;;vyy,,VYY7 88rc|j|j|j|jj|jS)z Returns the absolute value of the pixel-by-pixel difference between the two images. :: out = abs(image1 - image2) :rtype: :py:class:`~PIL.Image.Image` )rrrchop_differencers r differencer$Ts8 KKM KKM ;;vyy00; <r]s$#- . : 9 =;" 9 = = :STE E!,E5:EJOEE$STJ J!,J5:JJOJJ" = B6$ 5 6. 1  1!, 14? 1 19r