)EjA ddlmZddlmZd*d Zd+d Zd+d Zd,dZd,dZd,dZ d,dZ d,dZ d,dZ d,dZ d,dZ d-d.dZ d-d.dZd,dZd,dZd,dZd,dZd,d Zd/d"Zd0d$Zd1d2d)Zd%S)3) annotations)Imageimage Image.Imagevalueintreturnc8tjd|j|S)zVFill a channel with a given gray level. :rtype: :py:class:`~PIL.Image.Image` L)rnewsize)rrs @C:\PYTHON\MyICR_Suite\python\Lib\site-packages\PIL/ImageChops.pyconstantrs 9S%*e , ,,c*|S)ziCopy a channel. Alias for :py:meth:`PIL.Image.Image.copy`. :rtype: :py:class:`~PIL.Image.Image` )copyrs r duplicater s ::<<rc|||jS)zl Invert an image (channel). :: out = MAX - image :rtype: :py:class:`~PIL.Image.Image` )load_newim chop_invertrs rinvertr)s1 JJLLL ::eh**,, - --rimage1image2c||||j|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_lighterrrs rlighterr!6sB KKMMM KKMMM ;;vy--fi88 9 99rc||||j|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_darkerr s rdarkerr$EsB KKMMM KKMMM ;;vy,,VY77 8 88rc||||j|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_differencer s r differencer'TsB KKMMM KKMMM ;;vy00;; < <s rsubtractrBsF KKMMM KKMMM ;;vy..vy%HH I IIrc||||j|jS)zAdd two images, without clipping the result. :: out = ((image1 + image2) % MAX) :rtype: :py:class:`~PIL.Image.Image` )rrrchop_add_modulor s r add_modulorEsB KKMMM KKMMM ;;vy00;; < <r_s$#"""""---- . . . . : : : : 9 9 9 9 = = = =;;;;" 9 9 9 9 = = = = = = = = : : : :STEEEEE$STJJJJJ" = = = = B B B B6666$ 5 5 5 5 6 6 6 6.... 1 1 1 19999999r