10.2.4 Brush
Brush is commonly referred to as an internal object that defines the fill of graphic shapes such as rectangles, ellipses, pies, polygons, and closed paths. Brush is an abstract base class and cannot be instantiated. To create a Brush object, you use a class derived from brush, such as SolidBrush, TextureBrush, and LinearGradientBrush.
The SolidBrush class is used to define a monochrome brush. Brushes are used to populate graphic shapes, such as rectangles, ellipses, slices, polygons, and closed paths. The following table lists the commonly used methods and properties.
System.Drawing.Brushes defines a number of standard brushes that users can define directly with a blue brush.
System.Drawing.Brush brush = System.Drawing.Brushes.Blue;
Of course, users can also customize brushes.
// 定义一个红色笔刷
System.Drawing.Brush brush = new System.Drawing.SolidBrush (System.Drawing.Color.Red);
TextureBrush