
    (h	                         S SK JrJr  S SKJr   " S S\5      r " S S\5      r " S S\5      r\ " S	 S
5      5       r	g)    )	dataclassfield)Dictc                   d    \ rS rSrSr\S 5       r\S 5       r\S 5       r\S 5       r	S r
S 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.c                     U S   $ )zIntrinsic image widthw selfs    UC:\Users\13-19\Desktop\PokeDex\pokedex\Lib\site-packages\fpdf/image_datastructures.pywidthImageInfo.width	        Cy    c                     U S   $ )zIntrinsic image heighthr   r   s    r   heightImageInfo.height   r   r   c                     U S   $ );Only available if the image has been placed on the documentrendered_widthr   r   s    r   r   ImageInfo.rendered_width   s     $%%r   c                     U S   $ )r   rendered_heightr   r   s    r   r   ImageInfo.rendered_height   s     %&&r   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c                     U R                   U R                  -  nXE-  U:  a  XE-  nUnXU-
  S-  -  nOX5-  nUnX$U-
  S-  -  nXXg4$ )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   xyr
   r   rationew_wnew_hs           r   scale_inside_boxImageInfo.scale_inside_box#   sb    
 

T[[(9q=IEEe)q AIEEe)q AU!!r   r   N)__name__
__module____qualname____firstlineno____doc__propertyr   r   r   r   r'   r0   __static_attributes__r   r   r   r   r      sb    I     & & ' '/"r   r   c                   "    \ rS rSrSrSS jrSrg)RasterImageInfo4   z9Information about a raster image used in the PDF documentc                     US:X  a  US:X  a  U S   U-  nU S   U-  nX4$ US:X  a  X S   -  U S   -  nX4$ US:X  a  XS   -  U S   -  nX4$ )Nr   r
   r   r   )r   r
   r   scales       r   size_in_document_units&RasterImageInfo.size_in_document_units7   s~    6a1fS	E!AS	E!A
 t	 !VIS	)A t !VIS	)Atr   r   N)   )r2   r3   r4   r5   r6   r>   r8   r   r   r   r:   r:   4   s
    ?r   r:   c                       \ rS rSrSrSrg)VectorImageInfoB   z9Information about a vector image used in the PDF documentr   N)r2   r3   r4   r5   r6   r8   r   r   r   rB   rB   B   s    ?r   rB   c                   j    \ rS rSr% \" \S9r\\\4   \	S'   \" \S9r
\\\4   \	S'   Sr\\	S'   S rSrg	)

ImageCacheH   )default_factoryimagesicc_profilesAUTOimage_filterc                 P    U R                   R                  5        H  nSUS'   M
     g )Nr   usages)rH   values)r   imgs     r   reset_usagesImageCache.reset_usagesQ   s"    ;;%%'CCM (r   r   N)r2   r3   r4   r5   r   dictrH   r   str__annotations__rI   bytesintrK   rP   r8   r   r   r   rE   rE   H   sB     $D9FDdO9%*4%@L$ucz"@L#r   rE   N)
dataclassesr   r   typingr   rR   r   r:   rB   rE   r   r   r   <module>rY      sK    ( ," ,"^i @i @ 
 
 
r   