https://baike.baidu.com/item/%E5%BC%A7%E5%BA%A6
弧度的计算:
1°为π/180弧度
所以比如要得到旋转12°的图像,而rotateimage函数要弧度,所以12°可以写成这样:
π/180 * 12
即可。