如何使用ImageGrab旋转图像?

2024-04-24 17:13:52 发布

您现在位置:Python中文网/ 问答频道 /正文

from PIL import ImageGrab

img = ImageGrab.grab(bbox=(10,10,300,960))
img.rotate(angle=330) #This line does not work
img.show()

图像显示正常。如何旋转它