본문 바로가기

Programming/Python

[Python] 파이썬으로 화면 캡쳐하기

반응형

Code Summary

from PIL import ImageGrab 

# full screen
img_full = ImageGrab.grab()

# crob screen
img_crop = ImageGrab.grab([0,0,800,600])

# img show
img_full.show()
img_crop.show()

반응형

'Programming > Python' 카테고리의 다른 글

error: Microsoft Visual C++ 14.0 or greater is required.  (0) 2022.01.31
[Python] 함수 이름 가져오기  (0) 2020.11.07
[Python] Flask 예제 코드  (0) 2020.08.30