Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/ImageWin.cpython-310.pyc

134 lines
9.1 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@sdddlmZddlmZGdd<05>d<05>ZGdd<07>d<07>ZGdd <09>d <09>ZGd
d <0B>d <0B>ZGd d <0A>d e<07>ZdS)<0F>)<01> annotations<6E>)<01>Imagec@<01>$eZdZdZd dd<07>Zd dd <09>Zd
S) <0A>HDCz<43>
Wraps an HDC integer. The resulting object can be passed to the
:py:meth:`~PIL.ImageWin.Dib.draw` and :py:meth:`~PIL.ImageWin.Dib.expose`
methods.
<20>dc<64>int<6E>return<72>NonecC<01>
||_dS<00>N<>r)<02>selfr<00>r<00>o/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/ImageWin.py<70>__init__<00>
z HDC.__init__cC<01>|jSr r <00>rrrr<00>__int__"<00>z HDC.__int__N)rrr r
<00>r r<00><06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrrrrr<00>
rc@r) <0A>HWNDz<44>
Wraps an HWND integer. The resulting object can be passed to the
:py:meth:`~PIL.ImageWin.Dib.draw` and :py:meth:`~PIL.ImageWin.Dib.expose`
methods, instead of a DC.
<20>wndrr r
cCr r <00>r)rrrrrr-rz HWND.__init__cCrr r rrrrr0rz HWND.__int__N)rrr r
rrrrrrr&rrc@sbeZdZdZ d#d$d d
<EFBFBD>Zd%d d<0E>Z d#d&dd<14>Zd'dd<17>Z d#d(dd<1C>Zd)dd <20>Z d*d!d"<22>Z
dS)+<2B>Diba&
A Windows bitmap with the given mode and size. The mode can be one of "1",
"L", "P", or "RGB".
If the display requires a palette, this constructor creates a suitable
palette and associates it with the image. For an "L" image, 128 graylevels
are allocated. For an "RGB" image, a 6x6x6 colour cube is used, together
with 20 graylevels.
To make sure that palettes work properly under Windows, you must call the
``palette`` method upon certain events from Windows.
:param image: Either a PIL image, or a mode string. If a mode string is
used, a size must also be given. The mode can be one of "1",
"L", "P", or "RGB".
:param size: If the first argument is a mode string, this
defines the size of the image.
N<>image<67>Image.Image | str<74>size<7A>tuple[int, int] | Noner r
cCs<>t|t<01>r|}d}|durd}t|<04><01>n|j}|j}|dvr#t<05>|<03>}tj<07>||<02>|_ ||_||_|rAt|t<01>r:J<00>|<00>
|<01>dSdS)N<>z+If first argument is mode, size is required)<04>1<>L<>P<>RGB) <0B>
isinstance<EFBFBD>str<74>
ValueError<EFBFBD>moder$r<00> getmodebase<73>core<72>displayr"<00>paste)rr"r$r.<00>msgrrrrHs$
<02>
<04>z Dib.__init__<5F>handle<6C>int | HDC | HWNDc
Cs`t|<01>}t|t<02>r(|j<03>|<02>}z|j<03>|<03>W|j<03>||<03>dS|j<03>||<03>w|j<03>|<02>dS)a 
Copy the bitmap contents to a device context.
:param handle: Device context (HDC), cast to a Python integer, or an
HDC or HWND instance. In PythonWin, you can use
``CDC.GetHandleAttrib()`` to get a suitable handle.
N)rr+rr"<00>getdc<64>expose<73> releasedc)rr4<00>
handle_intrrrrr7]s
 "z
Dib.expose<73>dst<73>tuple[int, int, int, int]<5D>src<72> tuple[int, int, int, int] | Nonec
Csz|dur d|j}t|<01>}t|t<03>r3|j<04>|<04>}z|j<04>|||<03>W|j<04>||<05>dS|j<04>||<05>w|j<04>|||<03>dS)am
Same as expose, but allows you to specify where to draw the image, and
what part of it to draw.
The destination and source areas are given as 4-tuple rectangles. If
the source is omitted, the entire image is copied. If the source and
the destination have different sizes, the image is resized as
necessary.
N)rr)r$rr+rr"r6<00>drawr8)rr4r:r<r9rrrrr>os

 "zDib.drawrc
Cs`t|<01>}t|t<02>r(|j<03>|<02>}z|j<03>|<01>}W|j<03>||<01>|S|j<03>||<01>w|j<03>|<02>}|S)at
Installs the palette associated with the image in the given device
context.
This method should be called upon **QUERYNEWPALETTE** and
**PALETTECHANGED** events from Windows. If this method returns a
non-zero value, one or more display palette entries were changed, and
the image should be redrawn.
:param handle: Device context (HDC), cast to a Python integer, or an
HDC or HWND instance.
:return: The number of entries that were changed (if one or more entries,
this indicates that the image should be redrawn).
)rr+rr"r6<00> query_paletter8)rr4r9<00>resultrrrr?<00>s
 <10> zDib.query_palette<74>im<69> Image.Image<67>boxcCsJ|<01><00>|j|jkr|<01>|j<01>}|r|j<03>|j|<02>dS|j<03>|j<05>dS)a<>
Paste a PIL image into the bitmap image.
:param im: A PIL image. The size must match the target region.
If the mode does not match, the image is converted to the
mode of the bitmap image.
:param box: A 4-tuple defining the left, upper, right, and
lower pixel coordinate. See :ref:`coordinate-system`. If
None is given instead of a tuple, all of the image is
assumed.
N)<06>loadr.<00>convertr"r2rA)rrArCrrrr2<00>s   z Dib.paste<74>buffer<65>bytescCs|j<00>|<01>dS)z<>
Load display memory contents from byte data.
:param buffer: A buffer containing display data (usually
data returned from :py:func:`~PIL.ImageWin.Dib.tobytes`)
N)r"<00> frombytes)rrFrrrrH<00>sz Dib.frombytescCs
|j<00><01>S)zy
Copy display memory contents to bytes object.
:return: A bytes object containing display data.
)r"<00>tobytesrrrrrI<00>s
z Dib.tobytesr )r"r#r$r%r r
)r4r5r r
)r4r5r:r;r<r=r r
)r4r5r r)rArBrCr=r r
)rFrGr r
)r rG) rrrrrr7r>r?r2rHrIrrrrr!4s <0C>
 <0C>
 <0C>
 r!c@sdeZdZdZ d#d$d d <0C>Zd%dd<11>Zd&dd<18>Zd'dd<1A>Zd(dd<1C>Zd&dd<1E>Z d)dd <20>Z
d(d!d"<22>Z dS)*<2A>Windowz*Create a Window with the given title size.<2E>PILN<4C>titler,<00>width<74>
int | None<6E>heightr r
cCs"tj<01>||j|p d|p d<01>|_dS)Nr)rr0<00> createwindow<6F>_Window__dispatcher<65>hwnd)rrLrMrOrrrr<00>s
<EFBFBD>zWindow.__init__<5F>action<6F>argsrcGst|d|<01><00><02>|<02>dS)N<>
ui_handle_)<01>getattr)rrSrTrrr<00> __dispatcher<65>szWindow.__dispatcherr<00>x0<78>y0<79>x1<78>y1cC<01>dSr r<00>rrrXrYrZr[rrr<00>ui_handle_clear<61><00>zWindow.ui_handle_clearcCr\r r)rrXrYrZr[rrr<00>ui_handle_damage<67>r_zWindow.ui_handle_damagecCr\r rrrrr<00>ui_handle_destroy<6F>r_zWindow.ui_handle_destroycCr\r rr]rrr<00>ui_handle_repair<69>r_zWindow.ui_handle_repaircCr\r r)rrMrOrrr<00>ui_handle_resize<7A>r_zWindow.ui_handle_resizecCstj<01><02>dSr )rr0<00> eventlooprrrr<00>mainloop<6F>szWindow.mainloop)rKNN)rLr,rMrNrOrNr r
)rSr,rTrr r
<00> rrrXrrYrrZrr[rr r
)
rXrrYrrZrr[rr r
)r r
)rMrrOrr r
) rrrrrrQr^r`rarbrcrerrrrrJ<00>s <0C>





rJcs.eZdZdZdd<14>fd d
<EFBFBD> Zddd<12>Z<05>ZS)<16> ImageWindowz6Create an image window which displays the given image.rKr"<00>Image.Image | DibrLr,r r
cs8t|t<01>s t|<01>}||_|j\}}t<04>j|||d<01>dS)N)rMrO)r+r!r"r$<00>superr)rr"rLrMrO<00><01> __class__rrr<00>s

zImageWindow.__init__rrrXrYrZr[cCs|j<00>|||||f<04>dSr )r"r>r]rrrrb<00>szImageWindow.ui_handle_repair)rK)r"rhrLr,r r
rf)rrrrrrb<00> __classcell__rrrjrrg<00>srgN) <09>
__future__rr&rrrr!rJrgrrrr<00><module>s