SkiaSharpDrawingContext
Class
Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Drawing
Summary:
Defines a skia sharp drawing context.
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
Type: Boolean
Gets or sets the motion canvas.
Type: CoreMotionCanvas
Type: CoreMotionCanvas
Gets or sets the paint.
Type: SKPaint
Type: SKPaint
Gets or sets the background.
Type: SKColor
Type: SKColor
Gets the blend mode used when clearing the canvas during rendering operations.
Type: SKBlendMode
Type: SKBlendMode
Gets the active opacity.
Type: Single
Type: Single
Gets the active paint task.
Type: Paint
Type: Paint