枕头中的图像旋转
Image rotation in Pillow
我有一张图片,我想将它转置 30 度。是否可以使用
之类的东西
spinPicture003 = Picture003.transpose(Image.Rotate_30)
要绕其中心逆时针旋转 30 度,请使用:
spinPicture003 = Picture003.rotate(30)
尝试使用 rotate() 而不是 transpose()
如果想保持图片大小,可以使用
spinPicture003 = Picture003.rotate(30)
但是如果你想交换宽度和高度,请使用
spinPicture003 = Picture003.rotate(30, expand=1)
我有一张图片,我想将它转置 30 度。是否可以使用
之类的东西 spinPicture003 = Picture003.transpose(Image.Rotate_30)
要绕其中心逆时针旋转 30 度,请使用:
spinPicture003 = Picture003.rotate(30)
尝试使用 rotate() 而不是 transpose()
如果想保持图片大小,可以使用
spinPicture003 = Picture003.rotate(30)
但是如果你想交换宽度和高度,请使用
spinPicture003 = Picture003.rotate(30, expand=1)