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+ãóddlmZddlmZmZmZGdd«ZGdde«ZGdd e«ZGd
d e«Z Gd d
e«Z
y)é)Ú annotationsé)ÚImageÚ ImageFilterÚ ImageStatcó*eZdZUded<ded<ddZy)Ú_Enhanceú Image.ImageÚimageÚ
degeneratecóXtj|j|j|«S)
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óeZdZdZddZy)Ú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)LA)r Úintermediate_modeÚgetbandsÚmodeÚconvertr ©rr s rÚ__init__zColor.__init__4sd؈Œ
Ø!$ˆÔØ %—. "Ø%)ˆ × ! U§Z¡ZÒ —MM $×"8Ñ"8Ó9×AÀ%Ç*Á*ÓMˆˆrr r
rÚNone©rrrÚ__doc__r&rrrrr+s ñô rrcóeZdZdZddZy)Ú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__G؈Œ
Ø :‰:˜Ò Ø—MM &ˆ”9—>> (×-¨aÑ0°3ÑÜŸ)™) C¨¯©°TÓŒØ ?‰?× Ñ  4§:¡:§?¡?Ò "Ÿo™o×5°d·j±j·o±oÓFˆDŒOà $—**× O‰O× $ T§Z¡Z×%:Ñ%:¸3Ó%?Õ  (rNr'r)rrrr,r,?s
ñô
Arr,cóeZdZdZddZy)Ú
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óeZdZdZddZy)Ú 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.