Ñò
…n+Oc           @   sÁ   d  d k  Z  d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 d d „ Z	 d
 d d „ Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d S(   iÿÿÿÿNc         C   s   t  i d |  i | ƒ S(   s&   Fill a channel with a given grey levelt   L(   t   Imaget   newt   size(   t   imaget   value(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   constant+   s    c         C   s
   |  i  ƒ  S(   s   Create a copy of a channel(   t   copy(   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt	   duplicate6   s    c         C   s    |  i  ƒ  |  i |  i i ƒ  ƒ S(   s   Invert a channel(   t   loadt   _newt   imt   chop_invert(   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   invertB   s    
c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s)   Select the lighter pixels from each image(   R	   R
   R   t   chop_lighter(   t   image1t   image2(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   lighterS   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s(   Select the darker pixels from each image(   R	   R
   R   t   chop_darker(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   darkere   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Subtract one image from another(   R	   R
   R   t   chop_difference(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt
   differencev   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Superimpose two positive images(   R	   R
   R   t   chop_multiply(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   multiply‰   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Superimpose two negative images(   R	   R
   R   t   chop_screen(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   screenš   s    

g      ð?i    c         C   s6   |  i  ƒ  | i  ƒ  |  i |  i i | i | | ƒ ƒ S(   s   Add two images(   R	   R
   R   t   chop_add(   R   R   t   scalet   offset(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   add¬   s    

c         C   s6   |  i  ƒ  | i  ƒ  |  i |  i i | i | | ƒ ƒ S(   s   Subtract two images(   R	   R
   R   t   chop_subtract(   R   R   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   subtract¾   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Add two images without clipping(   R	   R
   R   t   chop_add_modulo(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt
   add_moduloÏ   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s$   Subtract two images without clipping(   R	   R
   R   t   chop_subtract_modulo(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   subtract_moduloà   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Logical and between two images(   R	   R
   R   t   chop_and(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   logical_andë   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Logical or between two images(   R	   R
   R   t   chop_or(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt
   logical_orö   s    

c         C   s0   |  i  ƒ  | i  ƒ  |  i |  i i | i ƒ ƒ S(   s   Logical xor between two images(   R	   R
   R   t   chop_xor(   R   R   (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   logical_xor  s    

c         C   s   t  i |  | | ƒ S(   s5   Blend two images using a constant transparency weight(   R   t   blend(   R   R   t   alpha(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyR*     s    c         C   s   t  i |  | | ƒ S(   sC   Create composite image by blending images using a transparency mask(   R   t	   composite(   R   R   t   mask(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyR,     s    c         C   s=   | d j o
 | } n |  i ƒ  |  i |  i i | | ƒ ƒ S(   s4   Offset image in horizontal and/or vertical directionN(   t   NoneR	   R
   R   R   (   R   t   xoffsett   yoffset(    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyR   )  s    

(   R   R   R   R   R   R   R   R   R   R   R   R!   R#   R%   R'   R)   R*   R,   R.   R   (    (    (    s8   /usr/local/lib/python2.6/dist-packages/PIL/ImageChops.pyt   <module>   s$   														
	