图像旋转

2024-10-01 11:19:55 发布

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

我有一个图像,我想把它调到30度。有没有可能用像

 spinPicture003 = Picture003.transpose(Image.Rotate_30)

Tags: 图像imagetransposerotatepicture003spinpicture003
3条回答

要绕中心逆时针旋转30度,请使用:

spinPicture003 = Picture003.rotate(30)

尝试使用rotate()而不是transpose()

如果要保持图像大小,可以使用

spinPicture003 = Picture003.rotate(30)

但是如果您想交换宽度和高度,请使用

^{pr2}$

相关问题 更多 >