FillStyle Struct

Fill-styles (built-in and user-defined tilings). SharpPlot offers a good range of pre-defined shading patterns, but the majority of output formats allow you to add your own custom fills. for SVG, these would typically be more sophisticated gradients, or 3D-effect filters to give the effect of extrusion and lighting on the completed graphic.

public struct FillStyle

Public Constructor

Creates a custom shading from an existing gradient or URI.

public FillStyle(
    string newDefinition
);

Example

sp.SetBackground(Color.Bisque,FillStyle.GradientBottomRight);
FillStyle fs = new FillStyle("#gentlelight"); // SVG filter
sp.SetBackground(Color.White,new FillStyle("tartan.png"));

Bitmap fills are currently only supported in output rendered as VML. Customised gradients may be used with any of the vector formats, except for filters which are specific to SVG.

Public Static Properties

BackgroundShape is filled with the current background
BackwardDiagonalShape is diagonally hatched right to leftt
DiagonalCrossShape is diagonally cross-hatched
DomeFill has 3D domed effect
DrumFill has 3D Column effect
ForwardDiagonalShape is diagonally hatched left to right
GradientBottomFill has S-N gradient
GradientBottomLeftFill has SW-NE gradient
GradientBottomRightFill has SE-NW gradient
GradientLeftFill has W-E gradient
GradientRightFill has E-W gradient
GradientTopFill has N-S gradient
GradientTopLeftFill has NW-SE gradient
GradientTopRightFill has NE-SW gradient
HalftoneFill colour has 50% saturation
HorizontalBrickShape is filled with bricking pattern
Opacity18Fill colour has 18% opacity
Opacity30Fill colour has 30% opacity
Opacity42Fill colour has 42% opacity
Opacity54Fill colour has 54% opacity
Opacity6Fill colour has 6% opacity
Opacity66Fill colour has 66% opacity
Opacity78Fill colour has 78% opacity
Opacity90Fill colour has 90% opacity
PipeFill has 3D Pipe effect
Saturate10Fill colour has 10% saturation
Saturate20Fill colour has 20% saturation
Saturate30Fill colour has 30% saturation
Saturate60Fill colour has 60% saturation
Saturate80Fill colour has 80% saturation
Saturate90Fill colour has 90% saturation
ShingleShape is filled with fish-scale pattern
SolidShape is filled with solid colour
SpotBottomLeftFill has Bottom-Left spotlight
SpotBottomRightFill has Bottom-Right spotlight
SpotTopLeftFill has Top-Left spotlight
SpotTopRightFill has Top-Right spotlight
SunriseFill has Sunrise gradient
UnfilledShape is not filled
WeaveShape is shaded with basket-weave pattern

Requirements

Namespace: Causeway

Assembly: SharpPlot (in sharpplot.dll)

See also ...

SharpPlot | SetBackground | SetChartBackground | SetFillStyles | SetFrameBackground | SetKeyBackground | SetNoteBackground