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
widthfloat
LineStyle(float, Color)
public LineStyle(float width, Color color)
Parameters
LineStyle(float, Color, LinePattern)
public LineStyle(float width, Color color, LinePattern pattern)
Parameters
widthfloatcolorColorpatternLinePattern
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(Paint)
public void ApplyToPaint(Paint paint)
Parameters
paintPaint
Clone()
public LineStyle Clone()
Returns
Render(RenderPack, PixelLine)
public void Render(RenderPack rp, PixelLine line)
Parameters
rpRenderPacklinePixelLine
Render(RenderPack, PixelRect)
public void Render(RenderPack rp, PixelRect rect)
Parameters
rpRenderPackrectPixelRect
Render(SKCanvas, Paint, PixelLine)
[Obsolete("use the overload where the paint is passed last")]
public void Render(SKCanvas canvas, Paint paint, PixelLine line)
Parameters
Render(SKCanvas, PixelLine, Paint)
public void Render(SKCanvas canvas, PixelLine line, Paint paint)
Parameters
Render(SKCanvas, PixelLine[], Paint)
public void Render(SKCanvas canvas, PixelLine[] lines, Paint paint)
Parameters
Render(SKCanvas, PixelRect, Paint, bool)
public void Render(SKCanvas canvas, PixelRect rect, Paint paint, bool contract = false)
Parameters
Render(SKCanvas, Pixel[], Pixel[], Paint)
public void Render(SKCanvas canvas, Pixel[] starts, Pixel[] ends, Paint paint)
Parameters
Render(SKCanvas, SKPath, Paint)
public void Render(SKCanvas canvas, SKPath path, Paint paint)