Table of Contents

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

width float
color Color

LineStyle(float, Color, LinePattern)

public LineStyle(float width, Color color, LinePattern pattern)

Parameters

width float
color Color
pattern LinePattern

Properties

AntiAlias

public bool AntiAlias { get; set; }

Property Value

bool

CanBeRendered

public bool CanBeRendered { get; }

Property Value

bool

Color

public Color Color { get; set; }

Property Value

Color

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

bool

HandDrawn

If enabled will make this line appear hand drawn.

public bool HandDrawn { get; set; }

Property Value

bool

HandDrawnJitter

public double HandDrawnJitter { get; set; }

Property Value

double

HandDrawnSegmentLength

public double HandDrawnSegmentLength { get; set; }

Property Value

double

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

None

public static LineStyle None { get; }

Property Value

LineStyle

Pattern

public LinePattern Pattern { get; set; }

Property Value

LinePattern

Rounded

public bool Rounded { get; set; }

Property Value

bool

StrokeCap

public SKStrokeCap StrokeCap { get; set; }

Property Value

SKStrokeCap

StrokeJoin

public SKStrokeJoin StrokeJoin { get; set; }

Property Value

SKStrokeJoin

StrokeMiter

public float StrokeMiter { get; set; }

Property Value

float

Width

Width of the line (in pixels)

public float Width { get; set; }

Property Value

float

Methods

ApplyToPaint(SKPaint)

public void ApplyToPaint(SKPaint paint)

Parameters

paint SKPaint

Clone()

public LineStyle Clone()

Returns

LineStyle

Render(SKCanvas, PixelLine, SKPaint)

public void Render(SKCanvas canvas, PixelLine line, SKPaint paint)

Parameters

canvas SKCanvas
line PixelLine
paint SKPaint

Render(SKCanvas, PixelLine[], SKPaint)

public void Render(SKCanvas canvas, PixelLine[] lines, SKPaint paint)

Parameters

canvas SKCanvas
lines PixelLine[]
paint SKPaint

Render(SKCanvas, PixelRect, SKPaint)

public void Render(SKCanvas canvas, PixelRect rect, SKPaint paint)

Parameters

canvas SKCanvas
rect PixelRect
paint SKPaint

Render(SKCanvas, Pixel[], Pixel[], SKPaint)

public void Render(SKCanvas canvas, Pixel[] starts, Pixel[] ends, SKPaint paint)

Parameters

canvas SKCanvas
starts Pixel[]
ends Pixel[]
paint SKPaint

Render(SKCanvas, SKPaint, PixelLine)

[Obsolete("use the overload where the paint is passed last")]
public void Render(SKCanvas canvas, SKPaint paint, PixelLine line)

Parameters

canvas SKCanvas
paint SKPaint
line PixelLine

Render(SKCanvas, SKPath, SKPaint)

public void Render(SKCanvas canvas, SKPath path, SKPaint paint)

Parameters

canvas SKCanvas
path SKPath
paint SKPaint