SkiaSharpDrawingContext
Class

Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Drawing

Summary:
Defines a skia sharp drawing context.

Inheritance:
Object =>
DrawingContext =>
SkiaSharpDrawingContext

Constructors

// Defines a skia sharp drawing context.
CoreMotionCanvas motionCanvas, // The motion canvas.
SKCanvas canvas, // The canvas.
SKColor background, // The background color.
SKBlendMode clearBlendMode, // The blend mode to use when clearing the canvas. Default is SrcIn.
Boolean clearCanvasOnNewFrame// Whether the canvas should be cleared at the beginning of each frame. Avalonia and Uno-Skia hosts clear the surface themselves before invoking OnBeginDraw, so they pass false. Default true for hosts where SkiaSharp owns the surface and must clear it explicitly (WPF, MAUI, WinForms, Blazor, in-memory).
)

Properties

Gets a value indicating whether the canvas is cleared at the beginning of each frame. See the constructor parameter of the same name.
Type: Boolean
Gets or sets the motion canvas.
Type: CoreMotionCanvas
Gets or sets the canvas.
Type: SKCanvas
Gets or sets the paint.
Type: SKPaint
Gets or sets the background.
Type: SKColor
Gets the blend mode used when clearing the canvas during rendering operations.
Type: SKBlendMode
Gets the active opacity.
Type: Single
Gets the active paint task.
Type: Paint

Methods

// Draws the given string over the canvas.
String log// the log content.
)