Class LineStyle
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
This configuration object (reference type) permanently lives inside objects which require styling. It is recommended to use this object as an init-only property.
public class LineStyle
- Inheritance
-
LineStyle
- Inherited Members
- Extension Methods
Constructors
LineStyle()
public LineStyle()
LineStyle(float)
public LineStyle(float width)
Parameters
width
float
LineStyle(float, Color)
public LineStyle(float width, Color color)
Parameters
LineStyle(float, Color, LinePattern)
public LineStyle(float width, Color color, LinePattern pattern)
Parameters
width
floatcolor
Colorpattern
LinePattern
Properties
AntiAlias
public bool AntiAlias { get; set; }
Property Value
CanBeRendered
public bool CanBeRendered { get; }
Property Value
Color
public Color Color { get; set; }
Property Value
Hairline
If enabled, Width is ignored and lines are rendered as a single pixel (regardless of scale factor)
public bool Hairline { get; set; }
Property Value
HandDrawn
If enabled will make this line appear hand drawn.
public bool HandDrawn { get; set; }
Property Value
HandDrawnJitter
public double HandDrawnJitter { get; set; }
Property Value
HandDrawnSegmentLength
public double HandDrawnSegmentLength { get; set; }
Property Value
IsVisible
public bool IsVisible { get; set; }
Property Value
None
public static LineStyle None { get; }
Property Value
Pattern
public LinePattern Pattern { get; set; }
Property Value
Rounded
public bool Rounded { get; set; }
Property Value
StrokeCap
public SKStrokeCap StrokeCap { get; set; }
Property Value
StrokeJoin
public SKStrokeJoin StrokeJoin { get; set; }
Property Value
StrokeMiter
public float StrokeMiter { get; set; }
Property Value
Width
Width of the line (in pixels)
public float Width { get; set; }
Property Value
Methods
ApplyToPaint(SKPaint)
public void ApplyToPaint(SKPaint paint)
Parameters
paint
SKPaint
Clone()
public LineStyle Clone()
Returns
Render(SKCanvas, PixelLine, SKPaint)
public void Render(SKCanvas canvas, PixelLine line, SKPaint paint)
Parameters
Render(SKCanvas, PixelLine[], SKPaint)
public void Render(SKCanvas canvas, PixelLine[] lines, SKPaint paint)
Parameters
Render(SKCanvas, PixelRect, SKPaint)
public void Render(SKCanvas canvas, PixelRect rect, SKPaint paint)
Parameters
Render(SKCanvas, Pixel[], Pixel[], SKPaint)
public void Render(SKCanvas canvas, Pixel[] starts, Pixel[] ends, SKPaint paint)
Parameters
Render(SKCanvas, SKPaint, PixelLine)
[Obsolete("use the overload where the paint is passed last")]
public void Render(SKCanvas canvas, SKPaint paint, PixelLine line)
Parameters
Render(SKCanvas, SKPath, SKPaint)
public void Render(SKCanvas canvas, SKPath path, SKPaint paint)