+
    UBi                    
  a  0 t $ ^ RIHt ^ RIt^ RIHt ^RIHt ^RIH	t	 Rt
]
'       d   ^ RIHt ^ RIHt ^R	IHt R
]R&   R]R&   RR.RR..t]P%                  R RR7       ] FG  w  tt R]R&   ]R8X  d   ^ RIHtHtHt ^ RIHtHtHt M]R8X  d   ^ RIHtHtHt ^ RIHtHtHt Rt!]t" M	  Rt!Rt"R)R R llt#R R lt$R R lt%R R  lt&R! R" lt']!'       d    ! R# R$]4      t(R% R& lt)R' R( lt*R#   ]] 3 d     K  i ; i)*    )annotationsN)BytesIO)Image)is_pathF)Callable)Any)	ImageFiletypeQBufferz
str | None
qt_version6PyQt6side6PySide6c                6    V ^,          \         P                  9   # )   )sysmodules)versions   &0/usr/lib/python3.14/site-packages/PIL/ImageQt.py<lambda>r   *   s    WQZ3;;%>    T)keyreversez#Callable[[int, int, int, int], int]qRgba)r   
QByteArray	QIODevice)QImageQPixmapr   c          
     ,    V ^8  d   QhRRRRRRRRRR/# )   rintgbareturn )formats   "r   __annotate__r*   B   s/     * *3 *3 *3 *3 * *r   c                (    \        WW#4      R,          # )zA(Internal) Turns an RGB color into a Qt compatible color integer.l    )r   )r"   r$   r%   r&   s   &&&&r   rgbr,   B   s     qz))r   c                    V ^8  d   QhRRRR/# )r!   imzQImage | QPixmapr'   ImageFile.ImageFiler(   )r)   s   "r   r*   r*   I   s      # (; r   c                
   \        4       p\        R8X  d    \        \        R4      pM\        pVP                  \        VR4      4       V P                  4       '       d   V P                  VR4       MV P                  VR4       \        4       pVP                  VP                  4       4       VP                  4        VP                  ^ 4       \        P
                  ! V4      #   \         d    \        \        R4      p Li ; i)z)
:param im: QImage or PIL ImageQt object
r   OpenModeFlagOpenMode	ReadWritepngppm)r   r   getattrr   AttributeErroropenhasAlphaChannelsaver   writedatacloseseekr   )r.   bufferqt_openmoder%   s   &   r   
fromqimagerA   I   s     YFS	9!)^<K  
KK[12 


	AGGFKKM
LLNFF1I::a=#  	9!)Z8K	9s   C$ $DDc                    V ^8  d   QhRRRR/# )r!   r.   r   r'   r/   r(   )r)   s   "r   r*   r*   f   s      G  3 r   c                    \        V 4      # N)rA   r.   s   &r   fromqpixmaprF   f   s    b>r   c               (    V ^8  d   QhRRRRRRRR/# )r!   byteswidthr#   modestrr'   r(   )r)   s   "r   r*   r*   j   s(      e C s u r   c                f   R^R^R^R^/V,          pW1,          p\        V^4      w  rVYV'       d   ^M^ ,           pV) ^,          pV'       g   V # \        \        V 4      V,          4       U	u. uF*  p	W	V,          V	^,           V,           RV,          ,           NK,  	  p
p	RP                  V
4      # u up	i )z=
converts each scanline of data from 8 bit to 32 bit aligned
1LPI;16    r   )divmodrangelenjoin)rH   rI   rJ   bits_per_pixelbits_per_linefull_bytes_per_lineremaining_bits_per_linebytes_per_lineextra_paddinginew_datas   &&&        r   
align8to32r^   j   s    
 1c1c1fb9$?N #*M39-3K0(1HAaPN#Oa'M  s5z^344A 	. AE^#;<w?VVV4  
 88Hs   +0B.c                    V ^8  d   QhRRRR/# )r!   r.   Image.Image | str | QByteArrayr'   zdict[str, Any]r(   )r)   s   "r   r*   r*      s     0V 0V7 0VN 0Vr   c           	     h   R pR pRp\        V R4      '       d   \        V P                  4       R4      p \        V 4      '       d   \        P
                  ! V 4      p Rp\        V \        P                  4      '       g   Q h\        R8X  d   \        \        R4      M\        pV P                  R8X  d   \        VR4      pEMV P                  R	8X  d3   \        VR
4      p\        R4       Uu. uF  p\        WfV4      NK  	  ppEMEV P                  R8X  dY   \        VR
4      pV P                  4       pVf   Q h\        ^ \        V4      ^4       Uu. uF  p\        WvV^,            !  NK  	  ppMV P                  R8X  d1   V P                  R4      p V P!                  RR4      p\        VR4      pMV P                  R8X  d    V P!                  RR4      p\        VR4      pMkV P                  R8X  d    V P#                  R 4      p \        VR4      pM;V'       d   V P%                  4        R\'        V P                  4       2p\)        V4      hV P*                  p	T;'       g-    \-        V P!                  4       V	^ ,          V P                  4      p
V'       d   V P%                  4        RV
RV	RVRV/# u upi u upi )NFtoUtf8zutf-8Tr   FormatrM   Format_MonorN   Format_Indexed8   rO   RGBRGBArawBGRAFormat_RGB32Format_ARGB32rP   c                    V R ,          # )rf   r(   )r\   s   &r   r   "_toqclass_helper.<locals>.<lambda>   s    Cr   Format_Grayscale16zunsupported image mode r<   sizer)   
colortable)hasattrrK   rb   r   r   r8   
isinstancer   r6   r   rJ   rS   r,   
getpaletterT   converttobytespointr=   repr
ValueErrorrp   r^   )r.   r<   rq   exclusive_fp	qt_formatr)   r\   palettemsgrp   __datas   &          r   _toqclass_helperr      s5   DJL r8g&r{{ZZ^b%++&&&&-73->)FI	ww#~M2	C$56,1#J7Jqc!lJ
7
	C$56--/"""8=aWq8QR8Q1c7q1u-.8Q
R
	E	ZZzz%(N3	F	zz%(O4	F	XX'($89HHJ'RWW7o77D??Z

d1grww?F

FFD(FL*UU; 8
 Ss   (J*J/c                  .   a  ] tR t^tR V 3R lltRtV ;t# )ImageQtc                    V ^8  d   QhRRRR/# )r!   r.   r`   r'   Noner(   )r)   s   "r   r*   ImageQt.__annotate__   s     	: 	:= 	:$ 	:r   c                
  < \        V4      pVR,          V n        \        SV `  V P                  VR,          ^ ,          VR,          ^,          VR,          4       VR,          '       d   V P	                  VR,          4       R# R# )z
An PIL image wrapper for Qt.  This is a subclass of PyQt's QImage
class.

:param im: A PIL Image object, or a file name (given either as
    Python string or a PyQt string object).
r<   rp   r)   rq   N)r   _ImageQt__datasuper__init__setColorTable)selfr.   im_data	__class__s   && r   r   ImageQt.__init__   su     'r*G
 "&/DKG""!	 |$$""7<#89 %r   )r~   )__name__
__module____qualname____firstlineno__r   __static_attributes____classcell__)r   s   @r   r   r      s    	: 	:r   r   c                    V ^8  d   QhRRRR/# )r!   r.   r`   r'   r   r(   )r)   s   "r   r*   r*      s      / G r   c                    \        V 4      # rD   )r   rE   s   &r   toqimager      s    2;r   c                    V ^8  d   QhRRRR/# )r!   r.   r`   r'   r   r(   )r)   s   "r   r*   r*      s      0 W r   c                ~    \        V 4      p\        \        R 4      ! V4      p\        R8X  d   VP	                  4        V# )	fromImager   )r   r6   r   r   detach)r.   qimagepixmaps   &  r   	toqpixmapr      s2    b\FWk*62FSMr   )   )+__conditional_annotations__
__future__r   r   ior    r   _utilr   TYPE_CHECKINGcollections.abcr   typingr   r	   __annotations__qt_versionssortr   	qt_modulePyQt6.QtCorer   r   r   PyQt6.QtGuir   r   r   PySide6.QtCorePySide6.QtGuiImportErrorRuntimeErrorqt_is_installedr   r,   rA   rF   r^   r   r   r   r   )r   s   @r   <module>r      s  $ # " 
   (M 'Ni   >  M%GY22CC::)# 
 =< OJ	# && OJ*:40Vf :& :2} & s   , C5C55	DD