<PackageReference Include="System.Drawing.Common" Version="9.0.1" />

CustomLineCap

Encapsulates a custom user-defined line cap.
public LineCap BaseCap { get; set; }

Gets or sets the LineCap enumeration on which this CustomLineCap is based.

public float BaseInset { get; set; }

Gets or sets the distance between the cap and the line.

public LineJoin StrokeJoin { get; set; }

Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.

public float WidthScale { get; set; }

Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)

Initializes a new instance of the CustomLineCap class with the specified outline and fill.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap)

Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset)

Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset.

public object Clone()

Creates an exact copy of this CustomLineCap.

public void Dispose()

Releases all resources used by this CustomLineCap object.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the CustomLineCap and optionally releases the managed resources.

public void GetStrokeCaps(out LineCap startCap, out LineCap endCap)

Gets the caps used to start and end lines that make up this custom cap.

public void SetStrokeCaps(LineCap startCap, LineCap endCap)

Sets the caps used to start and end lines that make up this custom cap.