This article describes the usage of HatchBrush in C# mode brushing. Share it for your reference. The details are as follows:
using System; using ; using ; using ; using ; using ; using ; using .Drawing2D; namespace WindowsApplication2 { public partial class Form7 : Form { public Form7() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { HatchBrush hat = new HatchBrush(, , ); Graphics formGraphics = (); (hat, new RectangleF(90.0F, 110.0F, 100, 100)); (); } catch () { ("There was an error opening the bitmap." + "Please check the path."); } } private void Form7_Load(object sender, EventArgs e) { } } }
I hope this article will be helpful to everyone's C# programming.