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 =>
SkiaPaint =>
LinearGradientPaint

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 floats in the range of 0 to 1. These floats 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 Clamp.
)
// 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 font family.
Type: String
Gets or sets the font style.
Type: SKFontStyle
Gets or sets the SKTypeface.
Type: SKTypeface
Gets or sets the stroke cap.
Type: SKStrokeCap
Gets or sets the stroke join.
Type: SKStrokeJoin
Gets or sets the path effect.
Type: PathEffect
Gets or sets the image filer.
Type: ImageFilter
Gets or sets the index of the z.
Type: Double
Obsolete.
Type: Boolean
Gets or sets a value indicating whether this instance is antialias.
Type: Boolean
Gets or sets a value indicating whether this instance is paused.
Type: Boolean
Gets or sets the stroke thickness.
Type: Single
Gets or sets the stroke miter.
Type: Single
Gets a value indicating whether this instance is empty.
Type: Boolean
Gets or sets a value indicating whether this instance is valid, the instance is valid when all the motion properties in the object finished their animations.
Type: Boolean
Gets or sets a value indicating whether this instance should be removed from the canvas when all the animations are completed.
Type: Boolean

Public static fields

Default start point.
Type: SKPoint
Default end point.
Type: SKPoint

Methods

// Clones the task.
// Sets the geometries for the given canvas.
CoreMotionCanvas canvas, // The canvas.
HashSet<IDrawnElement> geometries// The geometries.
)
// Adds a geometry to the paint task for the given canvas.
CoreMotionCanvas canvas, // The canvas.
IDrawnElement geometry// The geometry.
)
// Removes the given geometry from paint task.
CoreMotionCanvas canvas, // The canvas.
IDrawnElement geometry// The geometry.
)
// Removes all geometry from paint task.
CoreMotionCanvas canvas// The canvas.
)
// Sets the transition for the specified properties.
Animation animation, // The animation.
PropertyDefinition[] properties// The properties to animate, when no properties, all properties are selected.
)
// Removes the transition for the specified properties.
PropertyDefinition[] properties// The properties to remove, when no properties, all properties are selected.
)
// Completes the transition for the specified properties.
PropertyDefinition[] properties// The properties to complete, when no properties, all properties are selected.
)
// Gets the property definition by name.
String propertyName// The name of the property.
)