Canvas rotation
To paint an image rotated properly, first translate the canvas to the center of where the image will be painted. Then apply the rotation. Then either translate the inverse of what you just translated (just same values, negative), or paint the image a...