WalImageFile.pyc
1 o 2 Y��c � @ sB d Z ddlmZmZ ddlmZ G dd� dej�Zdd� ZdZ d S ) 3 a� 4 This reader is based on the specification available from: 5 https://www.flipcode.com/archives/Quake_2_BSP_File_Format.shtml 6 and has been tested with a few sample files found using google. 7 8 .. note:: 9 This format cannot be automatically recognized, so the reader 10 is not registered for use with :py:func:`PIL.Image.open()`. 11 To open a WAL file, use the :py:func:`PIL.WalImageFile.open()` function instead. 12 � )�Image� ImageFile)�i32lec @ s$ e Zd ZdZdZdd� Zdd� ZdS )�WalImageFileZWALzQuake2 Texturec C s� d| _ | j�d�}t|d�t|d�f| _t�| j� t|d�}| j�|� |d d� � dd�d | j 13 d <