FillDescription

References
public struct FillDescription : IStorable
Immutable skin descriptor for brushes.

Constructors

FillDescription

#
Deserialisation constructor.
public FillDescription(
reader
)

Properties

Alpha

#
Gets the additional transparency of this fill.
public float Alpha { get; }

Colour0

#
Gets the first colour in the fill.
public Color Colour0 { get; }

Colour1

#
Gets the second colour in the fill.
public Color Colour1 { get; }

Hatch

#
Gets the hatch strength of this fill. Strength=0.0 means only Colour0 is visible, Strength=1.0 means only Colour1 is visible.
public float Hatch { get; }

IsAssigned

#
Gets whether a fill has been assigned.
public bool IsAssigned { get; }

Methods

CreateBrush

#
Create a brush centred at the origin.
public Brush CreateBrush()

CreateBrush

#
Create a brush with a custom origin.
public Brush CreateBrush(
PointF
origin
)
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Hatched

#
Create a hatched overlay.
public static FillDescription Hatched(
Color
colour,
strength
)

Hatched

#
Create a hatched overlay.
public static FillDescription Hatched(
Color
colour0,
Color
colour1,
strength
)

Interpolate

#
Interpolate between two fill descriptions.
public FillDescription Interpolate(
other,
Other description.
factor
Interpolation factor.
)

Solid

#
Create a solid overlay.
public static FillDescription Solid(
Color
colour
)

WithAlpha

#
Add a transparency factor to this fill.
public FillDescription WithAlpha(
alpha
)

WithHatch

#
Add a transparency factor to this fill.
public FillDescription WithHatch(
hatch
)