The FCL offers many other graphics capabilities. The Brush hierarchy, for example, also includes HatchBrush, LinearGradientBrush, PathGradientBrush and TextureBrush.
The program in Fig. 17.21 demonstrates several graphics features, such as dashed lines, thick lines and the ability to fill shapes with various patterns. These represent just a few of the additional capabilities of the System. Drawing namespace.
1 ' Fig. 17.21: FrmDrawShapes.vb 2 ' Drawing various shapes on a Form. 3 Imports System.Drawing.Drawing2D 4 5 Public Class FrmDrawShapes 6 ' draw various shapes on Form 7 Private Sub FrmDrawShapes_Paint(ByVal sender As Object, ...