
    F j+                         % S SK JrJr  S SKJrJrJr  \S   r\\S'    " S S\	\
\4   5      r " S S\5      r " S	 S
\5      r\ " S S5      5       rg)    )	dataclassfield)Literal	TypeAliascast)AUTOFlateDecode	DCTDecode	JPXDecode	LZWDecodeCCITTFaxDecodeImageFilterc                       \ rS rSrSr\S\4S j5       r\S\4S j5       r\S\4S j5       r	\S\4S j5       r
S\4S jrS	\S
\S\S\S\\\\\4   4
S jrSrg)	ImageInfo   zInformation about an image used in the PDF document (base class).
We subclass this to distinguish between raster and vector images.returnc                 (    [        [        U S   5      $ )zIntrinsic image widthwr   floatselfs    j/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/fpdf/image_datastructures.pywidthImageInfo.width        E49%%    c                 (    [        [        U S   5      $ )zIntrinsic image heighthr   r   s    r   heightImageInfo.height   r   r   c                 (    [        [        U S   5      $ );Only available if the image has been placed on the documentrendered_widthr   r   s    r   r$   ImageInfo.rendered_width   s     E4 0122r   c                 (    [        [        U S   5      $ )r#   rendered_heightr   r   s    r   r'   ImageInfo.rendered_height"   s     E4 1233r   c                 r    U R                  5        VVs0 s H  u  pXS;   a  SOU_M     nnnSU S3$ s  snnf )N)dataiccpsmaskz...zself.__class__.__name__())items)r   kvds       r   __str__ImageInfo.__str__'   sI    LPJJL
LXDAA77Q>L 	
 
 *!A..
s   3xyr   r   c                 x    U S   nU S   nXV-  nXG-  U:  a  XG-  nUn	XU-
  S-  -  nOX7-  n	UnX$U	-
  S-  -  nXX4$ )z
Make an image fit within a bounding box, maintaining its proportions.
In the reduced dimension it will be centered within the available space.
r   r       )
r   r4   r5   r   r   img_wimg_hrationew_wnew_hs
             r   scale_inside_boxImageInfo.scale_inside_box-   si     CyCy9q=IEEe)q AIEEe)q AU!!r   r8   N)__name__
__module____qualname____firstlineno____doc__propertyr   r   r    r$   r'   strr2   tupler>   __static_attributes__r8   r   r   r   r      s    I &u & & & & & 3 3 3 4 4 4/ /"" "%*"/4"	ueUE)	*"r   r   c                   B    \ rS rSrSr S
S\S\S\S\\\4   4S jjrSrg	)RasterImageInfoB   z9Information about a raster image used in the PDF documentr   r   scaler   c                     U S   nU S   nUS:X  a  US:X  a  XC-  nXS-  nX4$ US:X  a
  X$-  U-  nX4$ US:X  a  X-  U-  nX4$ )Nr   r   r   r8   )r   r   r   rL   r9   r:   s         r   size_in_document_units&RasterImageInfo.size_in_document_unitsE   st     CyCy6a1fAA
 t	 !V	E!A t !V	E!Atr   r8   N)   )	r@   rA   rB   rC   rD   r   rG   rN   rH   r8   r   r   rJ   rJ   B   s=    ? 23 ).	ue|	 r   rJ   c                       \ rS rSrSrSrg)VectorImageInfoT   z9Information about a vector image used in the PDF documentr8   N)r@   rA   rB   rC   rD   rH   r8   r   r   rR   rR   T   s    ?r   rR   c                   t    \ rS rSr% \" \S9r\\\\	-  4   \
S'   \" \S9r\\\4   \
S'   Sr\\
S'   S
S jrS	rg)
ImageCacheZ   )default_factoryimagesicc_profilesr   image_filterNc                 P    U R                   R                  5        H  nSUS'   M
     g )Nr   usages)rX   values)r   imgs     r   reset_usagesImageCache.reset_usagesc   s"    ;;%%'CCM (r   r8   )r   N)r@   rA   rB   rC   r   dictrX   rF   rJ   rR   __annotations__rY   bytesintrZ   r   r_   rH   r8   r   r   rU   rU   Z   sK     <AQU;VFDo778V%*4%@L$ucz"@ &L+&r   rU   N)dataclassesr   r   typingr   r   r   r   rb   ra   rF   objectr   rJ   rR   rU   r8   r   r   <module>rh      sp    ( ( + + Y 0"S&[! 0"fi $@i @ 
 
 
r   