Ë
    z¾j™  ã                  ó�   — 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
y)é    )Úannotationsé   )ÚImageÚImageFilterÚ	ImageStatc                  ó   — e Zd Zd„ Zy)Ú_Enhancec                óX   — 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   ÚblendÚ
degenerateÚimage)ÚselfÚfactors     úS/var/www/html/candidateportal/venv/lib/python3.12/site-packages/PIL/ImageEnhance.pyÚenhancez_Enhance.enhance   s   € ô �{‰{˜4Ÿ?™?¨D¯J©J¸Ó?Ð?ó    N)Ú__name__Ú
__module__Ú__qualname__r   © r   r   r	   r	      s   „ ó@r   r	   c                  ó   — e Zd ZdZd„ Zy)Ú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.
    c                óÄ   — || _         d| _        d|j                  «       v rd| _        |j                  | j                  «      j                  |j                  «      | _        y )NÚLÚAÚLA)r   Úintermediate_modeÚgetbandsÚconvertÚmoder   ©r   r   s     r   Ú__init__zColor.__init__1   sM   € ØˆŒ
Ø!$ˆÔØ�%—.‘.Ó"Ñ"Ø%)ˆDÔ"àŸ-™-¨×(>Ñ(>Ó?×GÑGÈÏ
É
ÓSˆ�r   N©r   r   r   Ú__doc__r"   r   r   r   r   r   (   s   „ ñóTr   r   c                  ó   — e Zd ZdZd„ Zy)Ú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.
    c                ó„  — || _         t        t        j                  |j	                  d«      «      j
                  d   dz   «      }t        j                  d|j                  |«      j	                  |j                  «      | _
        d|j                  «       v r+| j                  j                  |j                  d«      «       y y )Nr   r   g      à?r   )r   Úintr   ÚStatr   Úmeanr   ÚnewÚsizer    r   r   ÚputalphaÚ
getchannel)r   r   r*   s      r   r"   zContrast.__init__B   s�   € ØˆŒ
Ü”9—>‘> %§-¡-°Ó"4Ó5×:Ñ:¸1Ñ=ÀÑCÓDˆÜŸ)™) C¨¯©°TÓ:×BÑBÀ5Ç:Á:ÓNˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr#   r   r   r   r&   r&   :   s   „ ñó<r   r&   c                  ó   — e Zd ZdZd„ Zy)Ú
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.
    c                óì   — || _         t        j                  |j                  |j                  d«      | _        d|j                  «       v r+| j
                  j                  |j                  d«      «       y y )Nr   r   )	r   r   r+   r    r,   r   r   r-   r.   r!   s     r   r"   zBrightness.__init__S   sV   € ØˆŒ
ÜŸ)™) E§J¡J°·
±
¸AÓ>ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr#   r   r   r   r0   r0   K   ó   „ ñó<r   r0   c                  ó   — e Zd ZdZd„ Zy)Ú	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.
    c                óÔ   — || _         |j                  t        j                  «      | _        d|j                  «       v r+| j                  j                  |j                  d«      «       y y )Nr   )r   Úfilterr   ÚSMOOTHr   r   r-   r.   r!   s     r   r"   zSharpness.__init__c   sP   € ØˆŒ
ØŸ,™,¤{×'9Ñ'9Ó:ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr#   r   r   r   r4   r4   [   r2   r   r4   N)Ú
__future__r   Ú r   r   r   r	   r   r&   r0   r4   r   r   r   ú<module>r:      sN   ðõ( #ç +Ñ +÷@ñ @ôTˆHô Tô$<ˆxô <ô"<�ô <ô <�õ <r   