导航:  GdiPlus Classes > GdiPlus Classes >

CGpBrush Class

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

The CGpBrush class is a base interface that defines a Brush object. A Brush object is used to paint the interior of graphics shapes, such as rectangles, ellipses, pies, polygons, and paths. You must not instantiate the CGpBrush class, but to use one of its derived classes.

 

A closed shape, such as a rectangle or an ellipse, consists of an outline and an interior. The outline is drawn with a pen and the interior is filled with a brush. GDI+ provides several brush classes for filling the interiors of closed shapes: CGpSolidBrush, CGpHatchBrush, CGpTextureBrush, CGpLinearGradientBrush, and CGpPathGradientBrush. All of these classes inherit from the CGpBrush class.