RadialGradientPaint
Class

Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Painting

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

Inheritance:
Object =>
Animatable =>
Paint =>
SkiaPaint =>
RadialGradientPaint

Constructors

// Initializes a new instance of the RadialGradientPaint class.
SKColor[] gradientStops, // The gradient stops.
Nullable<SKPoint> center, // The center point of the gradient, both X and Y in the range of 0 to 1, where 0 is the start of the axis and 1 the end, default is (0.5, 0.5).
Single radius, // The radius, in the range of 0 to 1, where 1 is the minimum of both Width and Height of the chart, default is 0.5.
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 RadialGradientPaint class.
SKColor centerColor, // Color of the center.
SKColor outerColor// Color of the outer.
)

Properties

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 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 the font family.
Type: String
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 the current time, this property is used by the motion engine to calculate the progress of the animations.
Type: Int64
Gets or sets a value indicating whether this instance should be removed from the canvas when all the animations are completed.
Type: Boolean
Gets the motion properties.
Type: Dictionary<String, IMotionProperty>

Methods

// Clones the task.
// Initializes the task.
DrawingContext drawingContext// The context.
)
// Sets the opacity according to the given geometry.
DrawingContext context, // The context.
Single opacity// The opacity.
)
// Resets the opacity.
DrawingContext context, // The context.
Single opacity// The opacity.
)
// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
// Gets the geometries.
CoreMotionCanvas canvas// The canvas.
)
// 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.
)
// Releases the canvas resources.
CoreMotionCanvas canvas// The canvas.
)
// Gets the clip rectangle for the given canvas.
CoreMotionCanvas canvas// The canvas.
)
// Sets the clip rectangle for the given canvas.
CoreMotionCanvas canvas, // The canvas.
LvcRectangle value// The rectangle.
)
// Sets the transition for the specified properties.
Animation animation, // The animation.
String[] propertyName// The property name, null to select all properties.
)
// Removes the transition for the specified properties.
String[] propertyName// The properties to remove, null to select all properties.
)
// Completes the transition for the specified properties.
String[] propertyName// The property name, null to select all properties.
)