zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
U
T±d ã@sXddlmZmZddlmZdd„ZGdd„dejƒZe ej    ee¡e 
ej    d¡dS)    é)ÚImageÚ    ImageFile)Úi32becCs(t|ƒdko&t|dƒdko&t|dƒdkS)Néééé©ré)ÚlenÚi32)Úprefix©rúId:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PIL/GbrImagePlugin.pyÚ_acceptsrc@s$eZdZdZdZdd„Zdd„ZdS)Ú GbrImageFileZGBRzGIMP brush filec
Csbt|j d¡ƒ}|dkr$d}t|ƒ‚t|j d¡ƒ}|dkrNd|›}t|ƒ‚t|j d¡ƒ}t|j d¡ƒ}t|j d¡ƒ}|dksŽ|dkršd}t|ƒ‚|dkr´d|›}t|ƒ‚|d    krÆ|d}n>|d
}|j d¡}|d krîd }t|ƒ‚t|j d¡ƒ|jd <|j |¡dd…}    |d    kr*d|_nd|_||f|_|    |jd<t |j    ¡||||_
dS)Nrrznot a GIMP brushr    z Unsupported GIMP brush version: r)rrz$Unsupported GIMP brush color depth: résGIMPz"not a GIMP brush, bad magic numberÚspacingéÿÿÿÿÚLZRGBAÚcomment) r ÚfpÚreadÚ SyntaxErrorÚinfoÚmodeÚ_sizerZ_decompression_bomb_checkÚsizeÚ
_data_size)
ÚselfÚ header_sizeÚmsgÚversionÚwidthÚheightZ color_depthZcomment_lengthZ magic_numberrrrrÚ_open+sB
 
 
 
 
 
 zGbrImageFile._opencCs:|js.tj |j|j¡|_| |j |j    ¡¡tj 
|¡S)N) ZimrÚcoreÚnewrrZ    frombytesrrrÚload)rrrrr(ZszGbrImageFile.loadN)Ú__name__Ú
__module__Ú __qualname__ÚformatÚformat_descriptionr%r(rrrrr's/rz.gbrN) ÚrrÚ_binaryrr rrZ register_openr,Zregister_extensionrrrrÚ<module>s
 >