'How to resize the rotated graph in the graph group in c#?

I'm using c# GDI+ to write a function for geometric transformation of a graph, but I'm running into a problem. When I use the Scale and rotateAt methods of the Matrix matrix to scale the rotated graph of the same graph group, I have some problems.

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.

The function I want to achieve is shown in the figure below:

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source