+
    Si                    n    R t ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ]'       d   ^ RIH	t	 R^RR/R R llt
R# )	zXThis is part of the MSS Python's module.
Source: https://github.com/BoboTiG/python-mss.
)annotationsN)TYPE_CHECKING)Pathleveloutputc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )   databytessizeztuple[int, int]r   intr   zPath | str | Nonereturnzbytes | None )formats   "O/Users/mibo/.openclaw/workspace/.venv/lib/python3.14/site-packages/mss/tools.py__annotate__r      s1     1 1 1o 1C 1M^ 1jv 1    c              8   \         P                  p\        P                  pVw  rgV^,          pV! R^ 4      p	RP	                  \        V4       U
u. uF!  qW
V,          W,          V,            ,           NK#  	  up
4      pV! R^^P^N^G^^
^^
4	      p. ROpV! RWg^^^ ^ ^ 4      V^&   V! RV! RP	                  VR,          4      4      R,          4      V^&   V! R\        V^,          4      4      V^ &   RR\        P                  ! W4      R.pV! RV! RP	                  VR,          4      4      R,          4      V^&   V! R\        V^,          4      4      V^ &   . ROpV! RV! V^,          4      R,          4      V^&   V! R\        V^,          4      4      V^ &   V'       g&   VRP	                  W,           V,           4      ,           # \        VR	4      ;_uu_ 4       pVP                  V4       VP                  RP	                  V4      4       VP                  RP	                  V4      4       VP                  RP	                  V4      4       VP                  4        \        P                  ! VP                  4       4       R
R
R
4       R
# u up
i   + '       g   i     R
# ; i)a  Dump data to a PNG file.  If `output` is `None`, create no file but return
the whole PNG data.

:param bytes data: RGBRGB...RGB data.
:param tuple size: The (width, height) pair.
:param int level: PNG compression level.
:param str output: Output file name.
z>Br   z>8Bz>2I5Bz>I:      Nl    s   IDATwbN)r   s   IHDRr   r   )r   s   IENDr   r   )structpackzlibcrc32joinrangelencompressopenwriteflushosfsyncfileno)r	   r   r   r   r   r   widthheightline
png_filtery	scanlinesmagicihdridatiendfilehs   ""$$             r   to_pngr0      s+    ;;DJJEME19DdAJQVW]Q^_Q^AtHqx$'GGGQ^_`IRRRR8E $D7E1aAq9DG4sxxS	23j@ADG4T!W&DG $--	93?D4sxxS	23j@ADG4T!W&DG $D4tAw*45DG4T!W&DGsxxd 2333	fd		uECHHTN#CHHTN#CHHTN# 	
  
 E `0 
	 s   'JB&JJ	)__doc__
__future__r   r"   r   r   typingr   pathlibr   r0   r   r   r   <module>r5      s:    # 	    1! 1ae 1 1r   