LinearGradientPaint
Class

Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Painting

Summary:
Defines a set of geometries that will be painted using a linear gradient shader.

Inheritance:
Object =>
Animatable =>
Paint =>
LinearGradientPaint
Implements:

Constructors

// Defines a set of geometries that will be painted using a linear gradient shader.
SKColor[] gradientStops, // The gradient stops.
SKPoint startPoint, // The start point, both X and Y in the range of 0 to 1, where 0 is the start of the axis and 1 the end.
SKPoint endPoint, // The end point, both X and Y in the range of 0 to 1, where 0 is the start of the axis and 1 the end.
Single[] colorPos, // An array of integers in the range of 0 to 1. These integers indicate the relative positions of the colors, You can set that argument to null to equally space the colors, default is null.
SKShaderTileMode tileMode// The shader tile mode, default is Repeat.
)
// Initializes a new instance of the LinearGradientPaint class.
SKColor[] gradientStops// The gradient stops.
)
// Initializes a new instance of the LinearGradientPaint class.
SKColor startColor, // The start color.
SKColor endColor, // The end color.
SKPoint startPoint, // The start point, both X and Y in the range of 0 to 1, where 0 is the start of the axis and 1 the end.
SKPoint endPoint// The end point, both X and Y in the range of 0 to 1, where 0 is the start of the axis and 1 the end.
)
// Initializes a new instance of the LinearGradientPaint class.
SKColor start, // The start.
SKColor end// The end.
)

Properties

Gets or sets the index of the z.
Type: Double
Gets or sets the stroke thickness.
Type: Single
Gets or sets the style.
Type: SKPaintStyle
Gets or sets a value indicating whether this instance is stroke.
Type: Boolean
Gets or sets a value indicating whether this instance is fill.
Type: Boolean
Gets or sets the font family.
Type: String
Gets or sets the font style.
Type: SKFontStyle
Gets or sets the SKTypeface, if null, LiveCharts will build one based on the FontFamily and SKFontStyle properties. Default is null.
Type: SKTypeface
Gets a value indication whether the paint has a custom font.
Type: Boolean
Gets or sets a value indicating whether this instance is antialias.
Type: Boolean
Gets or sets the stroke cap.
Type: SKStrokeCap
Gets or sets the stroke join.
Type: SKStrokeJoin
Gets or sets the stroke miter.
Type: Single
Gets or sets the color.
Type: SKColor
Gets or sets a value indicating whether this instance is paused.
Type: Boolean
Gets or sets the path effect.
Type: PathEffect
Gets or sets the image filer.
Type: ImageFilter
Gets or sets a value indicating whether this instance is completed.
Type: Boolean
Gets or sets the current time.
Type: Int64
Gets or sets a value indicating whether the element is removed when all the transitions complete.
Type: Boolean
Gets the motion properties.
Type: Dictionary<String, IMotionProperty>

Methods

// Clones the task.
// Sets the opacity according to the given geometry.
SkiaSharpDrawingContext context, // The context.
IPaintable<SkiaSharpDrawingContext> geometry// The geometry.
)
// Resets the opacity.
SkiaSharpDrawingContext context, // The context.
IPaintable<SkiaSharpDrawingContext> geometry// The geometry.
)
// Initializes the task.
SkiaSharpDrawingContext drawingContext// The context.
)
// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
// Gets the geometries.
MotionCanvas<SkiaSharpDrawingContext> canvas// The canvas.
)
// Sets the geometries.
MotionCanvas<SkiaSharpDrawingContext> canvas, // The canvas.
HashSet<IDrawable<SkiaSharpDrawingContext>> geometries// The geometries.
)
// Adds the geometry to paint task.
MotionCanvas<SkiaSharpDrawingContext> canvas, // The canvas.
IDrawable<SkiaSharpDrawingContext> geometry// The geometry.
)
// Removes the geometry from pain task.
MotionCanvas<SkiaSharpDrawingContext> canvas, // The canvas.
IDrawable<SkiaSharpDrawingContext> geometry// The geometry.
)
// Removes all geometry from paint task.
MotionCanvas<SkiaSharpDrawingContext> canvas// The canvas.
)
// Releases the canvas resources.
MotionCanvas<SkiaSharpDrawingContext> canvas// The canvas.
)
// Gets or sets the clip rectangle.
MotionCanvas<SkiaSharpDrawingContext> canvas// *summary not found*
)
// Gets or sets the clip rectangle.
MotionCanvas<SkiaSharpDrawingContext> canvas, // The canvas.
LvcRectangle value// The clip rectangle.
)
// Sets a property transition for the specified property or properties.
Animation animation, // The animation.
String[] propertyName// Name of the property, use null to set all the animatable properties.
)
// Removes a property or properties transitions.
String[] propertyName// Name of the property, null to remove them all.
)
// Completes the property or properties transitions.
String[] propertyName// Name of the property, null to select them all.
)