| Contents > Structures | Index |
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
| Background | |
| BackwardDiagonal | |
| DiagonalCross | |
| Dome | |
| Drum | |
| ForwardDiagonal | |
| GradientBottom | |
| GradientBottomLeft | |
| GradientBottomRight | |
| GradientLeft | |
| GradientRight | |
| GradientTop | |
| GradientTopLeft | |
| GradientTopRight | |
| Halftone | |
| HorizontalBrick | |
| Opacity18 | |
| Opacity30 | |
| Opacity42 | |
| Opacity54 | |
| Opacity6 | |
| Opacity66 | |
| Opacity78 | |
| Opacity90 | |
| Pipe | |
| Saturate10 | |
| Saturate20 | |
| Saturate30 | |
| Saturate60 | |
| Saturate80 | |
| Saturate90 | |
| Shingle | |
| Solid | |
| SpotBottomLeft | |
| SpotBottomRight | |
| SpotTopLeft | |
| SpotTopRight | |
| Sunrise | |
| Unfilled | |
| Weave |
Requirements
Namespace: Causeway
Assembly: SharpPlot (in sharpplot.dll)
See also ...
SharpPlot | SetBackground | SetChartBackground | SetFillStyles | SetFrameBackground | SetKeyBackground | SetNoteBackground
