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

46 lines
3.3 KiB
Plaintext
Raw Normal View History

Ë
ß¼
ãóŒdZddlmZddlmZddlmZmZmZddl m
Z ddl m Z
ddlmZGd „d
ej «Zd
dd Zy )a
.. note::
This format cannot be automatically recognized, so the
class is not registered for use with :py:func:`PIL.Image.open()`. To open a
gd file, use the :py:func:`PIL.GdImageFile.open()` function instead.
.. warning::
THE GD FORMAT IS NOT DESIGNED FOR DATA INTERCHANGE. This
implementation is provided for convenience and demonstrational
purposes only.
é)Ú annotations)ÚIOé)Ú ImageFileÚ ImagePaletteÚUnidentifiedImageError)Úi16be)Úi32be)ÚStrOrBytesPathcó eZdZdZdZdZddZy)Ú GdImageFilea%
Image plugin for the GD uncompressed format. Note that this format
is not supported by the standard :py:func:`PIL.Image.open()` function. To use
this plugin, you have to import the :py:mod:`PIL.GdImageFile` module and
use the :py:func:`PIL.GdImageFile.open()` function.
ÚGDzGD uncompressed imagescóð|jJ|jjd«}t|«dvr
d}t|«d|_t|d«t|d«f|_|d}|rdnd}t
|d |z«}|d
kr||jd <tjd |d |zdzd |zdzd
z«|_
tjdd|jzd |zdzd
zd«g|_y)Ni
)iþÿiÿÿzNot a valid GD 2.x .gd fileÚéérééÚ transparencyÚRGBXiÚraw)rrÚL)ÚfpÚreadÚi16Ú SyntaxErrorÚ_modeÚ_sizeÚi32ÚinforrÚpaletterÚ_TileÚsizeÚtile)ÚselfÚmsgÚ
true_colorÚtrue_color_offsetÚtindexs úR/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/GdImageFile.pyÚ_openzGdImageFile._open2sàw‰wÐ G‰GL‰L˜Ó ˆä ˆq‹6˜Ñ /ˆ˜ ˆŒ
ܘ˜A“Y¤ A q£ ÐŒ
àqTˆ
Ù!+™A°ÐôÐ.ˆØ CŠ<Ø(.ˆDI‰I #× A+¨aÑ/°!Ð6GÑ2GÈ!Ñ2KÈgÑ2UÐ
ˆŒ ô
O‰OØØ˜ŸÑÐÑ)¨GÑó 
ð
ˆ óN)ÚreturnÚNone)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚformatÚformat_descriptionr-©r.r,r
r
'sñð€FØô 
r.r
có||dk7r
d}t|« t|«S#t$r}d}t|«|d}~wwxYw)a#
Load texture from a GD image file.