EmfPenStyle

EmfPenStyle enumeration

The PenStyle enumeration defines the attributes of pens that can be used in graphics operations. A pen style is a combination of pen type, line style, line cap, and line join.

[Flags]
public enum EmfPenStyle

Values

NameValueDescription
PS_COSMETIC0A pen type that specifies a line with a width of one logical unit and a style that is a solid color
PS_ENDCAP_ROUND0A line cap that specifies round ends.
PS_JOIN_ROUND0A line join that specifies round joins
PS_SOLID0A line style that is a solid color
PS_DASH1A line style that is dashed
PS_DOT2A line style that is dotted.
PS_DASHDOT3A line style that consists of alternating dashes and dots
PS_DASHDOTDOT4A line style that consists of dashes and double dots.
PS_NULL5A line style that is invisible.
PS_INSIDEFRAME6A line style that is a solid color. When this style is specified in a drawing record that takes a bounding rectangle, the dimensions of the figure are shrunk so that it fits entirely in the bounding rectangle, taking into account the width of the pen.
PS_USERSTYLE7A line style that is defined by a styling array, which specifies the lengths of dashes and gaps in the line
PS_ALTERNATE8A line style in which every other pixel is set. This style is applicable only to a pen type of PS_COSMETIC
PS_ENDCAP_SQUARE100A line cap that specifies square ends.
PS_ENDCAP_FLAT200A line cap that specifies flat ends.
PS_JOIN_BEVEL1000A line join that specifies beveled joins.
PS_JOIN_MITER2000A line join that specifies mitered joins when the lengths of the joins are within the current miter length limit that is set in the playback device context. If the lengths of the joins exceed the miter limit, beveled joins are specified
PS_GEOMETRIC10000A pen type that specifies a line with a width that is measured in logical units and a style that can contain any of the attributes of a brush.
StyleMaskFThe style mask
EndCapMaskF00The end cap mask
JoinMaskF000The join mask
TypeMaskF0000The type mask

See Also