Skip to main content

ImmutablePen(UInt32, Double, ImmutableDashStyle, PenLineCap, PenLineJoin, Double) Constructor

Initializes a new instance of the Pen class.

Definition

Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public ImmutablePen(
uint color,
double thickness = 1,
ImmutableDashStyle? dashStyle = null,
PenLineCap lineCap = PenLineCap.Flat,
PenLineJoin lineJoin = PenLineJoin.Miter,
double miterLimit = 10
)

Parameters

  UInt32
The stroke color.
  Double  (Optional)
The stroke thickness.
  ImmutableDashStyle  (Optional)
The dash style.
  PenLineCap  (Optional)
Specifies the type of graphic shape to use on both ends of a line.
  PenLineJoin  (Optional)
The line join.
  Double  (Optional)
The miter limit.

See Also

Reference

ImmutablePen Class
ImmutablePen Overload
Avalonia.Media.Immutable Namespace