Get new x,y coordinates of a point in a rotated image
问题 I have Google Maps icons which I need to rotate by certain angles before drawing on the map using MarkerImage. I do the rotation on-the-fly in Python using PIL, and the resulting image is of the same size as the original - 32x32. For example, with the following default Google Maps marker: , a 30 degrees conter-clockwise rotation is achieved using the following python code: # full_src is a variable holding the full path to image # rotated is a variable holding the full path to where the