a :jgã@s|ddlmZddlmZmZmZddlmZddlm Z dddœd d „Z Gd d „d ej ƒZ e e je e ¡e e jd ¡dS)é)Ú annotationsé)ÚBmpImagePluginÚImageÚ ImageFile)Úi16le)Úi32leÚbytesÚbool)ÚprefixÚreturncCs|dd…dkS)Nés©)r rrú}|j d¡}|sV|}q<|d|dkr<|d|dkr<|}q<|sŒd}t|ƒ‚| t |d ƒ|¡|j d|j dd f|_ |j d\}}}} t  |d |j || ¡|j d<dS) Néznot a CUR fileór érrzNo cursors were foundé é)rr)ÚfpÚtellÚreadrÚ SyntaxErrorÚrangeÚi16Ú TypeErrorZ_bitmapÚi32ÚsizeÚ_sizeZtilerZ_Tile) ÚselfÚoffsetÚsÚmsgÚmÚiÚdÚeÚoÚarrrÚ_open(s&    zCurImageFile._openN)Ú__name__Ú __module__Ú __qualname__ÚformatÚformat_descriptionr,rrrrr$srz.curN)Ú __future__rÚrrrÚ_binaryrrrrrZ BmpImageFilerZ register_openr0Zregister_extensionrrrrÚs   %