
 X                 @   s   d  d l  m Z m Z m Z d Z e j Z e j Z e j Z	 d d   Z
 Gd d   d e j  Z e j e j e e
  e j e j d  d S)	    )ImageBmpImagePlugin_binaryz0.1c             C   s   |  d  d  d k S)N   s       )prefixr   r   O/home/ubuntu/projects/ifolica/lib/python3.4/site-packages/PIL/CurImagePlugin.py_accept    s    r	   c               @   s(   e  Z d  Z d Z d Z d d   Z d S)CurImageFileZCURzWindows Cursorc       	      C   sg  |  j  j   } |  j  j d  } t |  s< t d   n  d } x t t | d d     D]p } |  j  j d  } | s | } q_ t | d  t | d  k r_ t | d  t | d  k r_ | } q_ q_ W| s t d   n  |  j	 t
 | d	 d    |  |  j d |  j d d
 f |  _ |  j d \ } } } } | d |  j | | f |  j d <d  S)N   znot a CUR file    r      r      zNo cursors were found      )r   r   )fptellreadr	   SyntaxErrorrangei16i8	TypeErrorZ_bitmapi32sizeZtile)	selfoffsetsmideoar   r   r   _open,   s$    #	@	!! zCurImageFile._openN)__name__
__module____qualname__formatZformat_descriptionr$   r   r   r   r   r
   '   s   r
   z.curN)ZPILr   r   r   __version__r   Zi16ler   Zi32ler   r	   ZBmpImageFiler
   Zregister_openr(   Zregister_extensionr   r   r   r   <module>   s   			/