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.

PenType enumeration

Applies to: desktop apps only

The PenType enumeration indicates the type of pattern, texture, or gradient that a pen draws.

Syntax

typedef enum  {
  PenTypeSolidColor       = BrushTypeSolidColor,
  PenTypeHatchFill        = BrushTypeHatchFill,
  PenTypeTextureFill      = BrushTypeTextureFill,
  PenTypePathGradient     = BrushTypePathGradient,
  PenTypeLinearGradient   = BrushTypeLinearGradient,
  PenTypeUnknown          = -1 
} PenType;

Constants

PenTypeSolidColor

Indicates that the pen draws with a solid color.

PenTypeHatchFill

Indicates that the pen draws with a hatch pattern that is specified by a HatchBrush object.

PenTypeTextureFill

Indicates that the pen draws with a texture that is specified by a TextureBrush object.

PenTypePathGradient

Indicates that the pen draws with a color gradient that is specified by a PathGradientBrush object.

PenTypeLinearGradient

Indicates that the pen draws with a color gradient that is specified by a LinearGradientBrush object.

PenTypeUnknown

Indicates that the pen type is unknown.

Remarks

A pen's type is determined when the pen is constructed. For example, if you pass a HatchBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeHatchFill. If you pass a Color object or a SolidBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeSolidColor.

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)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show: