SkinValue

References
public readonly struct SkinValue : IEquatable<SkinValue>
The value of a skin property: a colour, a number, a filter or a dash pattern, never more than one.

Properties

Colour

#
public Colour Colour { get; }

Dash

#
The dash and gap lengths of a dash value, empty for solid. Null for other kinds.
public float[] Dash { get; }

Filter

#
The modifiers of a filter value, in order of application. Null for other kinds.
public Modifier[] Filter { get; }

Kind

#
public PropertyType Kind { get; }

Number

#
public double Number { get; }

Methods

Equals

#
public override bool Equals(
obj
)
ValueType.Equals

Equals

#
public bool Equals(
other
)

From

#
public static SkinValue From(
Color
colour
)

From

#
public static SkinValue From(
colour
)

From

#
public static SkinValue From(
number
)

From

#
A dash value: alternating dash and gap lengths in multiples of the stroke width. Empty, or null, is a solid stroke. Lengths may not be negative and cannot all be zero.
public static SkinValue From(
dash
)

From

#
A filter value: a stack of colour modifiers, possibly empty. Null counts as empty.
public static SkinValue From(
filter
)

GetHashCode

#
public override int GetHashCode()

ToEto

#
Gets the colour as an Eto colour, clipped to the sRGB gamut.
public Color ToEto()

ToString

#
public override string ToString()