
    ,hC                     B    d dl mZ d dlmZmZ d dlmZ  G d de      Zy)   )	MIME_TYPE)LITTLE_ENDIANStreamReader)BaseImageHeaderc                   P    e Zd ZdZed        Zed        Zed        Ze	d        Z
y)Bmpz#Image header parser for BMP images.c                    t        |t              }|j                  d      }|j                  d      }|j                  d      }|j                  d      }| j                  |      }| j                  |      } | ||||      S )z]Return |Bmp| instance having header properties parsed from the BMP image in
        `stream`.      &   *   )r   r   	read_long_dpi)	clsstream
stream_rdrpx_width	px_heighthorz_px_per_metervert_px_per_meterhorz_dpivert_dpis	            P/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/docx/image/bmp.pyfrom_streamzBmp.from_stream	   s     "&-8
''-((.	&006&00688-.88-.8Y(;;    c                 "    t         j                  S )zUMIME content type for this image, unconditionally `image/bmp` for BMP
        images.)r   BMPselfs    r   content_typezBmp.content_type   s     }}r   c                      y)z8Default filename extension, always 'bmp' for BMP images.bmp r   s    r   default_extzBmp.default_ext    s     r   c                 <    | dk(  ryt        t        | dz              S )zkReturn the integer pixels per inch from `px_per_meter`, defaulting to 96 if
        `px_per_meter` is zero.    `   g
F%u?)intround)px_per_meters    r   r   zBmp._dpi%   s$     15./00r   N)__name__
__module____qualname____doc__classmethodr   propertyr    r$   staticmethodr   r#   r   r   r   r      sS    -< <   
   1 1r   r   N)	constantsr   helpersr   r   imager   r   r#   r   r   <module>r5      s      0 "%1/ %1r   