Ñò
ÒUHc           @   s‡   d  d k  Z  d  d k Z d d d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d S(   iÿÿÿÿNt   _Enhancec           B   s   e  Z d  „  Z RS(   c         C   s   t  i |  i |  i | ƒ S(   N(   t   Imaget   blendt
   degeneratet   image(   t   selft   factor(    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyt   enhance"   s    (   t   __name__t
   __module__R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR       s   t   Colorc           B   s   e  Z d  Z d „  Z RS(   s   Adjust image colour balancec         C   s+   | |  _  | i d ƒ i | i ƒ |  _ d  S(   Nt   L(   R   t   convertt   modeR   (   R   R   (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyt   __init__/   s    	(   R   R	   t   __doc__R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR
   -   s   t   Contrastc           B   s   e  Z d  Z d „  Z RS(   s   Adjust image contrastc         C   sY   | |  _  t d „  | i d ƒ i ƒ  ƒ d } t i d | i | ƒ i | i ƒ |  _ d  S(   Nc         S   s   |  | S(    (    (   t   at   b(    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyt   <lambda>>   s    R   g      p@(	   R   t   reduceR   t	   histogramR   t   newt   sizeR   R   (   R   R   t   mean(    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   <   s    	%(   R   R	   R   R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   :   s   t
   Brightnessc           B   s   e  Z d  Z d „  Z RS(   s   Adjust image brightnessc         C   s+   | |  _  t i | i | i d ƒ |  _ d  S(   Ni    (   R   R   R   R   R   R   (   R   R   (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   J   s    	(   R   R	   R   R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   H   s   t	   Sharpnessc           B   s   e  Z d  Z d „  Z RS(   s   Adjust image sharpnessc         C   s"   | |  _  | i t i ƒ |  _ d  S(   N(   R   t   filtert   ImageFiltert   SMOOTHR   (   R   R   (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   W   s    	(   R   R	   R   R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyR   U   s   (    (   R   R   R    R
   R   R   R   (    (    (    s@   C:\graphics\Tools\Python26\Lib\site-packages\PIL\ImageEnhance.pyt   <module>   s
   