0

I am new to C# and want to fill a rectangle with a brick pattern. How do I do this? Here is what I have done but can't get it to work since I am missing something. I have researched this without success. Here is my simple code:

Rectangle aRect = new Rectangle();
HatchBrush brush = new HatchBrush(HatchStyle.DiagonalBrick,System.Drawing.Color.Black);
aRect.Fill = brush;
J W
  • 71
  • 6

0 Answers0