Files
intellecton/venv/lib/python3.12/site-packages/PIL/__pycache__/ImageEnhance.cpython-312.pyc
T

52 lines
5.3 KiB
Plaintext
Raw Normal View History

Ë
ß¼j+ãó�—ddlmZddlmZmZmZGd„d«ZGd„de«ZGd„d e«ZGd
„d e«Z Gd „d
e«Z
y)é)Ú annotationsé)ÚImageÚ ImageFilterÚ ImageStatcó*—eZdZUded<ded<dd„Zy)Ú_Enhanceú Image.ImageÚimageÚ
degeneratecóX—tj|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 )ÚselfÚfactors úS/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/ImageEnhance.pyÚenhancez_Enhance.enhances€ô�{‰{˜4Ÿ?™?¨D¯J©J¸Ó?Ð?óN)rÚfloatÚreturnr
)Ú__name__Ú
__module__Ú __qualname__Ú__annotations__r©rrr r s…Ø ÓØÓô @rr có—eZdZdZdd„Zy)ÚColoraAdjust 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«vrd|_|j|jk7r4|j |j«j |j«}||_y)NÚLÚAÚLA)r Úintermediate_modeÚgetbandsÚmodeÚconvertr ©rr s rÚ__init__zColor.__init__4sd€ØˆŒ
Ø!$ˆÔØ �%—.‘.Ó"Ñ "Ø%)ˆDÔ "à × !Ñ ! U§Z¡ZÒ /Ø—M‘M $×"8Ñ"8Ó9×AÑAÀ%Ç*Á*ÓMˆE؈�rN©r r
rÚNone©rrrÚ__doc__r&rrrrr+s „ñô rrcó—eZdZdZdd„Zy)Ú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ó^—||_|jdk7r|jd«}tt j
|«j ddz«}tjd|j|«|_
|jj|jjk7r4|jj|jj«|_
d|jj«vr5|jj|jjd««yy)Nrrgà?r)r r#r$ÚintrÚStatÚmeanrÚnewÚsizer r"ÚputalphaÚ
getchannel)rr r0s rr&zContrast.__init__Gsр؈Œ
Ø �:‰:˜Ò Ø—M‘M #Ó&ˆEÜ”9—>‘> %Ó(×-Ñ-¨aÑ0°3Ñ6Ó7ˆÜŸ)™) C¨¯©°TÓ:ˆŒØ �?‰?× Ñ  4§:¡:§?¡?Ò 2Ø"Ÿo™o×5Ñ5°d·j±j·o±oÓFˆDŒOà �$—*‘*×%Ñ%Ó'Ñ 'Ø �O‰O× $Ñ $ T§Z¡Z×%:Ñ%:¸3Ó%?Õ @ð (rNr'r)rrrr,r,?s
„ñô
Arr,có—eZdZdZdd„Zy)Ú
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óì—||_tj|j|jd«|_d|j
«vr+|j
j|jd««yy)Nrr) r rr1r#r2r r"r3r4r%s rr&zBrightness.__init__\sV€ØˆŒ
ÜŸ)™) E§J¡J°·
±
¸AÓ>ˆŒà �%—.‘.Ó"Ñ "Ø �O‰O× $Ñ $ U×%5Ñ%5°cÓ%:Õ ;ð #rNr'r)rrrr6r6Tó „ñô<rr6có—eZdZdZdd„Zy)Ú 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.