Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BrushType enumeration

Applies to: desktop apps only

The BrushType enumeration indicates the type of brush. There are five types of brushes.

Syntax

typedef enum  {
  BrushTypeSolidColor       = 0,
  BrushTypeHatchFill        = 1,
  BrushTypeTextureFill      = 2,
  BrushTypePathGradient     = 3,
  BrushTypeLinearGradient   = 4 
} BrushType;

Constants

BrushTypeSolidColor

Indicates a brush of type SolidBrush. A solid brush paints a single, constant color that can be opaque or transparent.

BrushTypeHatchFill

Indicates a brush of type HatchBrush. A hatch brush paints a background and paints, over that background, a pattern of lines, dots, dashes, squares, crosshatch, or some variation of these. The hatch brush consists of two colors: one for the background and one for the pattern over the background. The color of the background is called the background color, and the color of the pattern is called the foreground color.

BrushTypeTextureFill

Indicates a brush of type TextureBrush. A texture brush paints an image. The image or texture is either a portion of a specified image or a scaled version of a specified image. The type of image (metafile or nonmetafile) determines whether the texture is a portion of the image or a scaled version of the image.

BrushTypePathGradient

Indicates a brush of type PathGradientBrush. A path gradient brush paints a color gradient in which the color changes from a center point outward to a boundary that is defined by a closed curve or path. The color gradient has one color at the center point and one or multiple colors at the boundary.

BrushTypeLinearGradient

Indicates a brush of type LinearGradientBrush. A linear gradient brush paints a color gradient in which the color changes evenly from the starting boundary line of the linear gradient brush to the ending boundary line of the linear gradient brush. The boundary lines of a linear gradient brush are two parallel straight lines. The color gradient is perpendicular to the boundary lines of the linear gradient brush, changing gradually across the stroke from the starting boundary line to the ending boundary line. The color gradient has one color at the starting boundary line and another color at the ending boundary line.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

See also

HatchBrush
LinearGradientBrush
PathGradientBrush
SolidBrush
TextureBrush
Using a Brush to Fill Shapes
Brushes and Filled Shapes

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2016 Microsoft