+
    i
                        R t ^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHt ]'       d   ^ RIHt ^ RIHt  ! R	 R
]	4      tR# )z7The proxy class for an image part, and related objects.)annotationsN)TYPE_CHECKING)Image)Part)EmuInches)
OpcPackage)PackURIc                     a  ] tR t^tRtRR V 3R lllt]R 4       t]R 4       t]R 4       t	]
R R l4       t]R	 R
 l4       t]
R R l4       t]R 4       tRtV ;t# )	ImagePartzdAn image part.

Corresponds to the target part of a relationship with type RELATIONSHIP_TYPE.IMAGE.
c               (    V ^8  d   QhRRRRRRRR/# )	   partnamer	   content_typestrblobbytesimagezImage | None )formats   "V/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/docx/parts/image.py__annotate__ImagePart.__annotate__   s,      /2:?HT    c                	<   < \         \        V `  WV4       W@n        R # N)superr   __init___image)selfr   r   r   r   	__class__s   &&&&&r   r   ImagePart.__init__   s     	i'Er   c                    V P                   P                  pV P                   P                  pW,          p\        V4      # )zcNative width of this image, calculated from its width in pixels and
horizontal dots per inch (dpi).)r   px_widthhorz_dpir   )r   r#   r$   width_in_inchess   &   r   
default_cxImagePart.default_cx   s5     ::&&::&&"-o&&r   c                    V P                   P                  pV P                   P                  p\        \	        RV,          V,          4      4      p\        V4      # )zcNative height of this image, calculated from its height in pixels and
vertical dots per inch (dpi).i )r   	px_heightr$   introundr   )r   r)   r$   height_in_emus   &   r   
default_cyImagePart.default_cy&   sF     JJ((	::&&E&9"4x"?@A=!!r   c                    V P                   e   V P                   P                  # RV P                  P                  ,          # )a  Filename from which this image part was originally created.

A generic name, e.g. 'image.png', is substituted if no name is available, for
example when the image was loaded from an unnamed stream. In that case a default
extension is applied based on the detected MIME type of the image.
zimage.%s)r   filenamer   extr   s   &r   r0   ImagePart.filename/   s3     ;;";;'''DMM----r   c                    V ^8  d   QhRRRR/# )r   r   r   r   r	   r   )r   s   "r   r   r   <   s     J Ju J Jr   c                D    \        W!P                  VP                  V4      # )zRReturn an |ImagePart| instance newly created from `image` and assigned
`partname`.)r   r   r   )clsr   r   s   &&&r   
from_imageImagePart.from_image;   s     #5#5uzz5IIr   c                   V ^8  d   QhRR/# )r   returnr   r   )r   s   "r   r   r   B   s      u r   c                	    V P                   f&   \        P                  ! V P                  4      V n         V P                   # r   )r   r   	from_blobr   r2   s   &r   r   ImagePart.imageA   s*    ;;//$))4DK{{r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r   r	   r   r   r   r   packager   r   )r   s   "r   r   r   H   s(     1 1G 13 1e 1j 1r   c                    V ! WV4      # )zwCalled by ``docx.opc.package.PartFactory`` to load an image part from a
package being opened by ``Document(...)`` call.r   )r6   r   r   r   r?   s   &&&&&r   loadImagePart.loadG   s     8400r   c                ^    \         P                  ! V P                  4      P                  4       # )z0SHA1 hash digest of the blob of this image part.)hashlibsha1r   	hexdigestr2   s   &r   rE   ImagePart.sha1M   s      ||DII&0022r   )r   r   )__name__
__module____qualname____firstlineno____doc__r   propertyr&   r-   r0   classmethodr7   r   rA   rE   __static_attributes____classcell__)r    s   @r   r   r      s    
  ' ' " " 	. 	. J J
  
 1 1
 3 3r   r   )rL   
__future__r   rD   typingr   docx.image.imager   docx.opc.partr   docx.sharedr   r   docx.opc.packager   docx.opc.packurir	   r   r   r   r   <module>rX      s/    = "    "  #+(?3 ?3r   