| Server IP : 146.190.157.162 / Your IP : 216.73.216.78 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/PIL/__pycache__/ |
Upload File : |
�
D#�dv � � � d dl mZmZmZ G d� d� � Z G d� de� � Z G d� de� � Z G d� d e� � Z G d
� de� � ZdS )
� )�Image�ImageFilter� ImageStatc � � e Zd Zd� ZdS )�_Enhancec �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 �blend�
degenerate�image)�self�factors �2/usr/lib/python3/dist-packages/PIL/ImageEnhance.py�enhancez_Enhance.enhance s � � �{�4�?�D�J��?�?�?� N)�__name__�
__module__�__qualname__r � r r r r s( � � � � � �@� @� @� @� @r r c � � e Zd ZdZd� ZdS )�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|� � � v rd| _ |� | j � � � |j � � | _ d S )N�L�A�LA)r �intermediate_mode�getbands�convert�moder
�r r s r �__init__zColor.__init__0 sX � ���
�!$����%�.�.�"�"�"�"�%)�D�"��-�-��(>�?�?�G�G��
�S�S����r N�r r r �__doc__r r r r r r '