ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.LineStyle Class Reference

This configuration object (reference type) permanently lives inside objects which require styling. It is recommended to use this object as an init-only property. More...

Public Member Functions

LineStyle Clone ()
 
 LineStyle ()
 
 LineStyle (float width)
 
 LineStyle (float width, Color color)
 
 LineStyle (float width, Color color, LinePattern pattern)
 
void Render (SKCanvas canvas, Pixel[] starts, Pixel[] ends, SKPaint paint)
 
void Render (SKCanvas canvas, PixelLine[] lines, SKPaint paint)
 
void Render (SKCanvas canvas, PixelLine line, SKPaint paint)
 
void Render (SKCanvas canvas, PixelRect rect, SKPaint paint)
 
void Render (SKCanvas canvas, SKPath path, SKPaint paint)
 
void Render (SKCanvas canvas, SKPaint paint, PixelLine line)
 
void ApplyToPaint (SKPaint paint)
 

Properties

float Width = 0 [get, set]
 Width of the line (in pixels)
 
bool Hairline = false [get, set]
 If enabled, Width is ignored and lines are rendered as a single pixel (regardless of scale factor)
 
bool HandDrawn = false [get, set]
 If enabled will make this line appear hand drawn.
 
double HandDrawnSegmentLength = 7 [get, set]
 
double HandDrawnJitter = 1.2 [get, set]
 
Color Color = Colors.Black [get, set]
 
LinePattern Pattern = LinePattern.Solid [get, set]
 
bool IsVisible = true [get, set]
 
bool AntiAlias = true [get, set]
 
bool Rounded [get, set]
 
SKStrokeCap StrokeCap = SKStrokeCap.Butt [get, set]
 
SKStrokeJoin StrokeJoin = SKStrokeJoin.Miter [get, set]
 
float StrokeMiter = 4 [get, set]
 
static LineStyle None [get]
 
bool CanBeRendered [get]
 

Detailed Description

This configuration object (reference type) permanently lives inside objects which require styling. It is recommended to use this object as an init-only property.

Constructor & Destructor Documentation

◆ LineStyle() [1/4]

ScottPlot.LineStyle.LineStyle ( )
inline

◆ LineStyle() [2/4]

ScottPlot.LineStyle.LineStyle ( float  width)
inline

◆ LineStyle() [3/4]

ScottPlot.LineStyle.LineStyle ( float  width,
Color  color 
)
inline

◆ LineStyle() [4/4]

ScottPlot.LineStyle.LineStyle ( float  width,
Color  color,
LinePattern  pattern 
)
inline

Member Function Documentation

◆ ApplyToPaint()

void ScottPlot.LineStyle.ApplyToPaint ( SKPaint  paint)
inline

◆ Clone()

LineStyle ScottPlot.LineStyle.Clone ( )
inline

◆ Render() [1/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
Pixel[]  starts,
Pixel[]  ends,
SKPaint  paint 
)
inline

◆ Render() [2/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
PixelLine  line,
SKPaint  paint 
)
inline

◆ Render() [3/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
PixelLine[]  lines,
SKPaint  paint 
)
inline

◆ Render() [4/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
PixelRect  rect,
SKPaint  paint 
)
inline

◆ Render() [5/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
SKPaint  paint,
PixelLine  line 
)
inline

◆ Render() [6/6]

void ScottPlot.LineStyle.Render ( SKCanvas  canvas,
SKPath  path,
SKPaint  paint 
)
inline

Property Documentation

◆ AntiAlias

bool ScottPlot.LineStyle.AntiAlias = true
getset

◆ CanBeRendered

bool ScottPlot.LineStyle.CanBeRendered
get

◆ Color

Color ScottPlot.LineStyle.Color = Colors.Black
getset

◆ Hairline

bool ScottPlot.LineStyle.Hairline = false
getset

If enabled, Width is ignored and lines are rendered as a single pixel (regardless of scale factor)

◆ HandDrawn

bool ScottPlot.LineStyle.HandDrawn = false
getset

If enabled will make this line appear hand drawn.

◆ HandDrawnJitter

double ScottPlot.LineStyle.HandDrawnJitter = 1.2
getset

◆ HandDrawnSegmentLength

double ScottPlot.LineStyle.HandDrawnSegmentLength = 7
getset

◆ IsVisible

bool ScottPlot.LineStyle.IsVisible = true
getset

◆ None

LineStyle ScottPlot.LineStyle.None
staticget

◆ Pattern

LinePattern ScottPlot.LineStyle.Pattern = LinePattern.Solid
getset

◆ Rounded

bool ScottPlot.LineStyle.Rounded
getset

◆ StrokeCap

SKStrokeCap ScottPlot.LineStyle.StrokeCap = SKStrokeCap.Butt
getset

◆ StrokeJoin

SKStrokeJoin ScottPlot.LineStyle.StrokeJoin = SKStrokeJoin.Miter
getset

◆ StrokeMiter

float ScottPlot.LineStyle.StrokeMiter = 4
getset

◆ Width

float ScottPlot.LineStyle.Width = 0
getset

Width of the line (in pixels)


The documentation for this class was generated from the following file: