Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/ImageEnhance.cpython-310.pyc

55 lines
3.6 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f7 <00>@srddlmZddlmZmZmZGdd<05>d<05>ZGdd<07>de<06>ZGdd <09>d e<06>ZGd
d <0B>d e<06>Z Gd d <0A>d e<06>Z
dS)<0F>)<01> annotations<6E>)<03>Image<67> ImageFilter<65> ImageStatc@s(eZdZUded<ded<d
dd<08>Zd S) <0B>_Enhance<63> Image.Image<67>image<67>
degenerate<EFBFBD>factor<6F>float<61>returncCst<00>|j|j|<01>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<00>blendr
r )<02>selfr <00>r<00>R/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/ImageEnhance.py<70>enhances z_Enhance.enhanceN)r r r r)<05>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__annotations__rrrrrrs
rc@<01>eZdZdZd dd<07>ZdS)
<EFBFBD>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.
r rr <00>NonecCs8||_d|_d|<01><02>vrd|_|<01>|j<01><01>|j<04>|_dS)N<>L<>A<>LA)r <00>intermediate_mode<64>getbands<64>convert<72>moder
<00>rr rrr<00>__init__4s
 zColor.__init__N<5F>r rr r<00>rrr<00>__doc__r"rrrrr+src@r)
<EFBFBD>Contrastz<74>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 rr rcCsd||_tt<02>|<01>d<01><01>jdd<00>}t<06>d|j|<02><03>|j <09>|_
d|<01> <0B>vr0|j
<EFBFBD> |<01> d<04><01>dSdS)Nrrg<00>?r)r <00>intr<00>Statr<00>meanr<00>new<65>sizer r
r<00>putalpha<68>
getchannel)rr r)rrrr"Es  <04>zContrast.__init__Nr#r$rrrrr&=<00>r&c@r)
<EFBFBD>
Brightnessz<EFBFBD>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 rr rcCs@||_t<01>|j|jd<01>|_d|<01><06>vr|j<05>|<01>d<02><01>dSdS)Nrr) r rr*r r+r
rr,r-r!rrrr"Vs
 <04>zBrightness.__init__Nr#r$rrrrr/Nr.r/c@r)
<EFBFBD> Sharpnessz<73>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 rr rcCs:||_|<01>tj<03>|_d|<01><05>vr|j<04>|<01>d<01><01>dSdS)Nr)r <00>filterr<00>SMOOTHr
rr,r-r!rrrr"fs
 <04>zSharpness.__init__Nr#r$rrrrr0^r.r0N) <0B>
__future__r<00>rrrrrr&r/r0rrrr<00><module>s