This article describes the method of C# to implement graphic position combination conversion. Share it for your reference. The specific implementation method is as follows:
using System; using ; using ; using ; using ; using ; using ; using .Drawing2D; namespace advanced_drawing { public partial class Form9 : Form { public Form9() { InitializeComponent(); } private void Form9_Paint(object sender, PaintEventArgs e) { Rectangle rect = new Rectangle(0, 0, 20, 10); Matrix matrix = new Matrix(); (2, 3);//Sequence of Scale and Translate (10, 20); //(10, 20); //(2, 3); Graphics g = ; = matrix; (, rect); } } }
I hope this article will be helpful to everyone's C# programming.