December 17, 2017
Math behind rotation in MS Paint (2011)
Use a planar affine transformation.
As you pointed out, your operations are translation, rotation, shearing (skew) and scaling (stretch). We will represent each point on your image in homogeneous coordinates which allows us to use the composite matrix operations.
News Source : Math behind rotation in MS Paint (2011)