EdgeDescription

References
public sealed class EdgeDescription : IStorable
Immutable skin descriptor for edges (aka pens).

Constructors

EdgeDescription

#
Create a new dashed edge description.
public EdgeDescription(
width,
Pen width.
PenLineCap
cap,
End caps.
dashPattern,
Array of dash/gap lengths.
dashOffset
Offset of dash pattern.
)

EdgeDescription

#
Create a new solid edge description.
public EdgeDescription(
width,
Pen width.
PenLineCap
cap
End caps.
)

Properties

Cap

#
Gets the cap of this edge.
public PenLineCap Cap { get; }

Dash

#
Gets the dash style of this edge.
public DashStyle Dash { get; }

IsSolid

#
Gets whether this edge is solid. Non solid edges contain dash patterns.
public bool IsSolid { get; }

Width

#
Gets the width of this edge.
public float Width { get; }

Methods

AssignToPen

#
Assign this description to an existing pen.
public void AssignToPen(
Pen
pen
Pen to modify.
)
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Interpolate

#
Static interpolator with allowance for null inputs.
public static EdgeDescription Interpolate(
a,
First description.
b,
Second description.
factor
Interpolation factor.
)
Interpolated description, or null if both inputs are null.

Interpolate

#
Interpolate the edge description.
public EdgeDescription Interpolate(
other,
factor
)