VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.GradientStops Class Reference

Represents a read-only list of GradientStops. More...

Inheritance diagram for VectSharp.GradientStops:

Public Member Functions

IEnumerator< GradientStopGetEnumerator ()
 
 GradientStops (IEnumerable< GradientStop > gradientStops)
 Creates a new GradientStops instance containing the specified gradient stops. More...
 
 GradientStops (params GradientStop[] gradientStops)
 Creates a new GradientStops instance containing the specified gradient stops. More...
 

Public Attributes

GradientStop this[int index] => gradientStops[index]
 
int Count => gradientStops.Count
 

Static Public Attributes

static readonly double StopTolerance = 1e-7
 The minimum distance that is enforced between consecutive gradient stops. More...
 

Detailed Description

Represents a read-only list of GradientStops.

Definition at line 146 of file Brush.cs.

Constructor & Destructor Documentation

◆ GradientStops() [1/2]

VectSharp.GradientStops.GradientStops ( IEnumerable< GradientStop gradientStops)

Creates a new GradientStops instance containing the specified gradient stops.

Parameters
gradientStopsThe gradient stops that will be contained in the GradientStops object.

Definition at line 176 of file Brush.cs.

◆ GradientStops() [2/2]

VectSharp.GradientStops.GradientStops ( params GradientStop[]  gradientStops)

Creates a new GradientStops instance containing the specified gradient stops.

Parameters
gradientStopsThe gradient stops that will be contained in the GradientStops object.

Definition at line 222 of file Brush.cs.

Member Data Documentation

◆ StopTolerance

readonly double VectSharp.GradientStops.StopTolerance = 1e-7
static

The minimum distance that is enforced between consecutive gradient stops.

Definition at line 151 of file Brush.cs.


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