导航:  GdiPlus Classes > GdiPlus Classes > CGpBrush Class >

CGpSolidBrush Class

上一页返回章节概述下一页

The simplest form of brush, which paints in a solid color.

 

To fill a closed shape, you need an instance of the Graphics class and a Brush. The instance of the Graphics class provides methods, such as FillRectangle and FillEllipse, and the Brush stores attributes of the fill, such as color and pattern. The Brush is passed as one of the arguments to the fill method.