FillDescription

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

Constructors

FillDescription

#
public FillDescription(IReader reader)
Deserialisation constructor.
reader (IReader)

Properties

Alpha

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

Colour0

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

Colour1

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

Hatch

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

IsAssigned

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

Methods

CreateBrush

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

CreateBrush

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

IStorable.Store

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

Hatched

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

Hatched

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

Interpolate

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

Solid

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

WithAlpha

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

WithHatch

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