枕头中的图像旋转 [英] Image rotation in Pillow

查看:47
本文介绍了枕头中的图像旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图像,我想将它转置 30 度.是否可以使用类似

I have an image and I want to transpose it bu 30 degrees. is it possible to do using something like

 spinPicture003 = Picture003.transpose(Image.Rotate_30)

推荐答案

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

To rotate 30 degrees counter clockwise around its center use:

spinPicture003 = Picture003.rotate(30)

这篇关于枕头中的图像旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆