mtInertia.Picture.GetTrasformationMatrix C# (CSharp) Method

GetTrasformationMatrix() private method

private GetTrasformationMatrix ( ) : Matrix
return Matrix
        private Matrix GetTrasformationMatrix()
        {
            Matrix matrix = new Matrix();
            matrix.RotateAt(Angle, new PointF(ScalingFactor.Width * Width / 2, ScalingFactor.Height * Height / 2));
            matrix.Scale(ScalingFactor.Width * WidthFactor, ScalingFactor.Height * HeightFactor, MatrixOrder.Prepend);
            
            return matrix;
        }