| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/PIL/__pycache__/ |
Upload File : |
o
Z#�a) � @ sL d dl Z ddlmZ e jdkrd dlZd dlZd dlZd
dd�Zdd � ZdS )� N� )�Image�darwinFc C sF |d u r{t jdkr:t�d�\}}t�|� t�dd|g� t� |�}|�
� t�|� | r8|�| �}|�� |S |S t jdkr{tj
�||�\}} }
t�d| |
dd| d d
d
d@ d�}| ry|\}}| \}
}}}|�|
| || || || f�}|S tj
js�td
��tj
�|�\} }
t�d| |
dd| d d d�}| r�|�| �}|S )Nr z.png�
screencapturez-x�win32�RGB�raw�BGRr � ������z$Pillow was built without XCB support�BGRX� r )�sys�platform�tempfile�mkstemp�os�close�
subprocess�callr �open�load�unlink�crop�core�grabscreen_win32� frombytes�HAVE_XCB�OSError�grabscreen_x11)�bbox�include_layered_windows�all_screens�xdisplay�fh�filepath�im�
im_cropped�offset�size�data�x0�y0�left�top�right�bottom� r2 �//usr/lib/python3/dist-packages/PIL/ImageGrab.py�grab sL
��
"
r4 c C s~ t jdkrIt�d�\} }t�| � d| d ddddg}d g}|D ]}|d
|g7 }q!t�|� d }t�|�j dkrBt
�|�}|�� t�
|� |S t jdkr�t
j�� \}}|d
kr�dd l}|�d|�d } |d dkrx|| d � �d��d�}
n|| d � �d��d�}
|
d |
�d�� S t|t�r�dd l}|�|�}|dkr�ddlm} |�|�S |dkr�ddlm}
|
�|�S d S td��)Nr z.jpgz,set theFile to (open for access POSIX file "z" with write permission)�tryz4 write (the clipboard as JPEG picture) to theFilezend tryzclose access theFile� osascriptz-er r �file�I� zutf-16le� �mbcs� �pngr )�PngImagePlugin�DIB)�BmpImagePluginz3ImageGrab.grabclipboard() is macOS and Windows only)r r r r r r r r �stat�st_sizer r r r r �grabclipboard_win32�struct�unpack_from�decode�split�index�
isinstance�bytes�io�BytesIOr<