§
    aÒ³g+  ã                  ó°   — d dl mZ ddlmZmZmZ  G d„ d¦  «        Z G d„ de¦  «        Z G d„ d	e¦  «        Z G d
„ de¦  «        Z	 G d„ de¦  «        Z
dS )é    )Úannotationsé   )ÚImageÚImageFilterÚ	ImageStatc                  ó,   — e Zd ZU ded<   ded<   d	d„ZdS )
Ú_EnhanceúImage.ImageÚimageÚ
degenerateÚfactorÚfloatÚreturnc                óB   — t          j        | j        | j        |¦  «        S )aµ  
        Returns an enhanced image.

        :param factor: A floating point value controlling the enhancement.
                       Factor 1.0 always returns a copy of the original image,
                       lower factors mean less color (brightness, contrast,
                       etc), and higher values more. There are no restrictions
                       on this value.
        :rtype: :py:class:`~PIL.Image.Image`
        )r   Úblendr   r   )Úselfr   s     úN/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/PIL/ImageEnhance.pyÚenhancez_Enhance.enhance   s   € õ Œ{˜4œ?¨D¬J¸Ñ?Ô?Ð?ó    N)r   r   r   r
   )Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r   © r   r   r	   r	      sH   € € € € € € ØÐÐÑØÐÐÑð@ð @ð @ð @ð @ð @r   r	   c                  ó   — e Zd ZdZdd„ZdS )	ÚColora  Adjust image color balance.

    This class can be used to adjust the colour balance of an image, in
    a manner similar to the controls on a colour TV set. An enhancement
    factor of 0.0 gives a black and white image. A factor of 1.0 gives
    the original image.
    r   r
   r   ÚNonec                óî   — || _         d| _        d|                     ¦   «         v rd| _        | j        |j        k    r2|                     | j        ¦  «                             |j        ¦  «        }|| _        d S )NÚLÚAÚLA)r   Úintermediate_modeÚgetbandsÚmodeÚconvertr   ©r   r   s     r   Ú__init__zColor.__init__4   sm   € ØˆŒ
Ø!$ˆÔØ�%—.’.Ñ"Ô"Ð"Ð"Ø%)ˆDÔ"àÔ! U¤ZÒ/Ð/Ø—M’M $Ô"8Ñ9Ô9×AÒAÀ%Ä*ÑMÔMˆEØˆŒˆˆr   N©r   r
   r   r   ©r   r   r   Ú__doc__r'   r   r   r   r   r   +   s2   € € € € € ðð ð ð  ð  ð  ð  ð  r   r   c                  ó   — e Zd ZdZdd„ZdS )	ÚContrastzòAdjust image contrast.

    This class can be used to control the contrast of an image, similar
    to the contrast control on a TV set. An enhancement factor of 0.0
    gives a solid gray image. A factor of 1.0 gives the original image.
    r   r
   r   r   c                ó  — || _         |j        dk    r|                     d¦  «        }t          t	          j        |¦  «        j        d         dz   ¦  «        }t          j        d|j	        |¦  «        | _
        | j
        j        | j         j        k    r)| j
                             | j         j        ¦  «        | _
        d| j                              ¦   «         v r4| j
                             | j                              d¦  «        ¦  «         d S d S )Nr   r   g      à?r    )r   r$   r%   Úintr   ÚStatÚmeanr   ÚnewÚsizer   r#   ÚputalphaÚ
getchannel)r   r   r0   s      r   r'   zContrast.__init__G   sÞ   € ØˆŒ
ØŒ:˜ÒÐØ—M’M #Ñ&Ô&ˆEÝ•9”> %Ñ(Ô(Ô-¨aÔ0°3Ñ6Ñ7Ô7ˆÝœ) C¨¬°TÑ:Ô:ˆŒØŒ?Ô 4¤:¤?Ò2Ð2Ø"œo×5Ò5°d´j´oÑFÔFˆDŒOà�$”*×%Ò%Ñ'Ô'Ð'Ð'ØŒO×$Ò$ T¤Z×%:Ò%:¸3Ñ%?Ô%?Ñ@Ô@Ð@Ð@Ð@ð (Ð'r   Nr(   r)   r   r   r   r,   r,   ?   s8   € € € € € ðð ð
Að 
Að 
Að 
Að 
Að 
Ar   r,   c                  ó   — e Zd ZdZdd„ZdS )	Ú
BrightnesszÅAdjust image brightness.

    This class can be used to control the brightness of an image.  An
    enhancement factor of 0.0 gives a black image. A factor of 1.0 gives the
    original image.
    r   r
   r   r   c                óè   — || _         t          j        |j        |j        d¦  «        | _        d|                     ¦   «         v r/| j                             |                     d¦  «        ¦  «         d S d S )Nr   r    )	r   r   r1   r$   r2   r   r#   r3   r4   r&   s     r   r'   zBrightness.__init__\   si   € ØˆŒ
Ýœ) E¤J°´
¸AÑ>Ô>ˆŒà�%—.’.Ñ"Ô"Ð"Ð"ØŒO×$Ò$ U×%5Ò%5°cÑ%:Ô%:Ñ;Ô;Ð;Ð;Ð;ð #Ð"r   Nr(   r)   r   r   r   r6   r6   T   ó2   € € € € € ðð ð<ð <ð <ð <ð <ð <r   r6   c                  ó   — e Zd ZdZdd„ZdS )	Ú	SharpnesszðAdjust image sharpness.

    This class can be used to adjust the sharpness of an image. An
    enhancement factor of 0.0 gives a blurred image, a factor of 1.0 gives the
    original image, and a factor of 2.0 gives a sharpened image.
    r   r
   r   r   c                óæ   — || _         |                     t          j        ¦  «        | _        d|                     ¦   «         v r/| j                             |                     d¦  «        ¦  «         d S d S )Nr    )r   Úfilterr   ÚSMOOTHr   r#   r3   r4   r&   s     r   r'   zSharpness.__init__l   sf   € ØˆŒ
ØŸ,š,¥{Ô'9Ñ:Ô:ˆŒà�%—.’.Ñ"Ô"Ð"Ð"ØŒO×$Ò$ U×%5Ò%5°cÑ%:Ô%:Ñ;Ô;Ð;Ð;Ð;ð #Ð"r   Nr(   r)   r   r   r   r:   r:   d   r8   r   r:   N)Ú
__future__r   Ú r   r   r   r	   r   r,   r6   r:   r   r   r   ú<module>r@      s!  ðð( #Ð "Ð "Ð "Ð "Ð "à +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +ð@ð @ð @ð @ð @ñ @ô @ð @ð$ ð  ð  ð  ð  ˆHñ  ô  ð  ð(Að Að Að Að Aˆxñ Aô Að Að*<ð <ð <ð <ð <�ñ <ô <ð <ð <ð <ð <ð <ð <�ñ <ô <ð <ð <ð <r   