EdgeDescription

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

Constructors

EdgeDescription

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

EdgeDescription

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

Properties

Cap

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

Dash

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

IsSolid

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

Width

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

Methods

AssignToPen

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

IStorable.Store

#
void IStorable.Store(IWriter writer)
writer (IWriter)
Store

Interpolate

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

Interpolate

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