Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
XbmImagePlugin.cpython-313.pyc24 linesDownload Raw Back to __pycache__
1�

2v�j�3���SSKJr SSKrSSKJr SSKJrJr \R"S5r	S
Sjr4"SS	\R5rSS5jr\R"\R\\65 \R"\R\5 \R "\RS5 \R""\RS5 g)�)�annotationsN)�IO�)�Image�	ImageFiles�\s*#define[ \t]+.*_width[ \t]+(?P<width>[0-9]+)[\r\n]+#define[ 	]+.*_height[ 	]+(?P<height>[0-9]+)[
7]+(?P<hotspot>#define[ 	]+[^_]*_x_hot[ 	]+(?P<xhot>[0-9]+)[
8]+#define[ 	]+[^_]*_y_hot[ 	]+(?P<yhot>[0-9]+)[
9]+)?[\000-\377]*_bits\[]c�@�UR5RS5$)Ns#define)�lstrip�10startswith)�prefixs �XD:\code\apps\devtools\python\user_packages\Python313\site-packages\PIL/XbmImagePlugin.py�_acceptr
(s���=�=�?�%�%�j�1�1�c�&�\rSrSrSrSrSSjrSrg)�XbmImageFile�0�XBMz11X11 Bitmapc�L�URce[RURRS55nU(d
Sn[	U5e[UR
S55n[UR
S55nUR
S5(aA[UR
S55[UR
S554URS'SUlX44Ul	[R"S	S12UR-UR55/Ulg)Niznot a XBM file�width�height�hotspot�xhot�yhot�1�xbm�rr)�fp�xbm_head�match�read�SyntaxError�int�group�info�_mode�_sizer�_Tile�size�end�tile)�self�m�msg�xsize�ysizes     r�_open�XbmImageFile._open4s����w�w�"�"�"��N�N�4�7�7�<�<��,�-���"�C��c�"�"��A�G�G�G�$�%���A�G�G�H�%�&���7�7�9���$'������$8�#�a�g�g�f�o�:N�#O�D�I�I�i� ���13��\��14��_�_�U�F�T�Y�Y�,>�����H�I��	r)r$r%r)N)�return�None)�__name__�15__module__�__qualname__�__firstlineno__�format�format_descriptionr/�__static_attributes__�rrrr0s��
�F�%��Jrrc	��URS:waSURS3n[U5eURSURSS3R	S55 URSURS	S3R	S55 UR16R
S175nU(aNURSUSS3R	S55 URSUS	S3R	S55 URS
5 [R"X[R"SSUR-5/5 URS5 g)Nrzcannot write mode z as XBMz#define im_width r�18�asciiz#define im_height rrz#define im_x_hot z#define im_y_hot sstatic char im_bits[] = {19rrs};20)21�mode�OSError�writer'�encode�encoderinfo�getr�_saver&)�imr�filenamer,rs     rrDrDIs��	�w�w�#�~�"�2�7�7�)�7�3���c�l���H�H� �������B�
/�
6�
6�w�
?�@��H�H�!�"�'�'�!�*��R�
0�
7�
7��
@�A��n�n� � ��+�G��22���$�W�Q�Z�L��3�:�:�7�C�D�23���$�W�Q�Z�L��3�:�:�7�C�D��H�H�
+�,�
�O�O�B�Y�_�_�U�F�R�W�W�4D�E�F�G��H�H�W�rz.xbmz	image/xbm)r�bytesr1�bool)rEzImage.Imagerz	IO[bytes]rFzstr | bytesr1r2)�24__future__r�re�typingr�rr�compilerr
rrD�
register_openr7�
register_save�register_extension�
register_mimer:rr�<module>rRs���*#�	����:�:����2�J�9�&�&�J�2�(���L�'�'��w�?����L�'�'��/�����,�,�f�5����L�'�'��5r
codekingpro/portable-devtools · Team Ai