+
    ?i
                     h    R t ^ RIt^ RIt^RIHt  ! R R]4      t ! R R]4      t ! R R]4      tR# )	zD
PIL-based formats to take screenshots and grab from the clipboard.
N)Formatc                   t   a a ] tR t^t oRtRtRtV 3R ltR tR t	 ! R R]
P                  4      tR	tVtV ;t# )
BaseGrabFormatzBase format for grab formats.FNc                d   < \         \        V `
  ! V/ VB  \        P                  ! 4       V n        R # N)superr   __init__	threadingRLock_lock)selfargskwargs	__class__s   &*,R/var/www/html/photoedit/myenv/lib/python3.14/site-packages/imageio/plugins/grab.pyr   BaseGrabFormat.__init__   s%    nd,d=f=__&
    c                    R # )F r   requests   &&r   
_can_writeBaseGrabFormat._can_write   s    r   c                R   V P                   ;_uu_ 4        V P                  '       g6   R V n        ^ RIp\        VR4      '       g   \	        R4      h ^ RIHp Y n        RRR4       V P                  #   \         d     RRR4       R# i ; i  + '       g   i     T P                  # ; i)TN__version__z(Imageio Pillow requires Pillow, not PIL!)	ImageGrab)r   _pillow_importedPILhasattrImportErrorr   
_ImageGrab)r   r   r   s   &  r   _init_pillowBaseGrabFormat._init_pillow   s    ZZZ((((,%sM22%&STT - #,   #   Z  Z s/   ;BA1B1B<BBBB&	c                   2   a  ] tR t^(t o R tR tR tRtV tR# )BaseGrabFormat.Readerc                    R # r   r   r   s   &r   _openBaseGrabFormat.Reader._open)       r   c                    R # r   r   r&   s   &r   _closeBaseGrabFormat.Reader._close,   r)   r   c                8    V P                   P                  V4      # r   )format	_get_data)r   indexs   &&r   r/   BaseGrabFormat.Reader._get_data/   s    ;;((//r   r   N)	__name__
__module____qualname____firstlineno__r'   r+   r/   __static_attributes____classdictcell____classdict__s   @r   Readerr$   (   s     			0 	0r   r:   )r    r   r   )r2   r3   r4   r5   __doc__r   r    r   r   r!   r   r:   r6   r7   __classcell__)r   r9   s   @@r   r   r      s7     'J'0 0 0r   r   c                   0   a  ] tR t^3t o RtR tR tRtV tR# )ScreenGrabFormatzThe ScreenGrabFormat provided a means to grab screenshots using
the uri of "<screen>".

This functionality is provided via Pillow. Note that "<screen>" is
only supported on Windows and OS X.

Parameters for reading
----------------------
No parameters.
c                Z    VP                   R 8w  d   R# \        V P                  4       4      # )z<screen>Ffilenameboolr!   r   s   &&r   	_can_readScreenGrabFormat._can_read?   s'    z)D%%'((r   c                    V P                  4       pV'       g   Q hVP                  4       pVf   Q h\        P                  ! V4      pV/ 3# r   )r!   grabnpasarrayr   r0   r   pil_imims   &&   r   r/   ScreenGrabFormat._get_dataD   sG    %%'	y!!!!ZZ2vr   r   N	r2   r3   r4   r5   r;   rC   r/   r6   r7   r8   s   @r   r>   r>   3   s     	)
 r   r>   c                   0   a  ] tR t^Nt o RtR tR tRtV tR# )ClipboardGrabFormata  The ClipboardGrabFormat provided a means to grab image data from
the clipboard, using the uri "<clipboard>"

This functionality is provided via Pillow. Note that "<clipboard>" is
only supported on Windows.

Parameters for reading
----------------------
No parameters.
c                Z    VP                   R 8w  d   R# \        V P                  4       4      # )z<clipboard>Fr@   r   s   &&r   rC   ClipboardGrabFormat._can_readZ   s'    },D%%'((r   c                    V P                  4       pV'       g   Q hVP                  4       pVf   \        R4      h\        P                  ! V4      pV/ 3# )Nz5There seems to be no image data on the clipboard now.)r!   grabclipboardRuntimeErrorrG   rH   rI   s   &&   r   r/   ClipboardGrabFormat._get_data_   sT    %%'	y((*>J  ZZ2vr   r   NrM   r8   s   @r   rO   rO   N   s     	)

 
r   rO   )	r;   r	   numpyrG   corer   r   r>   rO   r   r   r   <module>rX      s:      $0V $0N~ 6. r   