Skip to main content

Interface ISkiaSharpApiLease

Namespace: Avalonia.Skia
Assembly: Avalonia.Skia.dll, VelloSharp.Avalonia.Vello.dll

[Unstable]
public interface ISkiaSharpApiLease : IDisposable

Implements​

IDisposable

Properties​

CurrentOpacity​

double CurrentOpacity { get; }

Property Value​

double

CurrentOpacity​

Gets the effective opacity applied to draw operations.

double CurrentOpacity { get; }

Property Value​

double

GrContext​

GRContext? GrContext { get; }

Property Value​

GRContext?

GrContext​

Gets the optional Skia GPU context associated with the lease.

GRContext? GrContext { get; }

Property Value​

GRContext?

SkCanvas​

SKCanvas SkCanvas { get; }

Property Value​

SKCanvas

SkCanvas​

Gets the Skia canvas that should receive draw commands.

SKCanvas SkCanvas { get; }

Property Value​

SKCanvas

SkSurface​

SKSurface? SkSurface { get; }

Property Value​

SKSurface?

SkSurface​

Gets the surface that backs the leased canvas.

SKSurface? SkSurface { get; }

Property Value​

SKSurface?

Methods​

TryLeasePlatformGraphicsApi()​

ISkiaSharpPlatformGraphicsApiLease? TryLeasePlatformGraphicsApi()

Returns​

ISkiaSharpPlatformGraphicsApiLease?

TryLeasePlatformGraphicsApi()​

Attempts to lease the underlying platform graphics context when available.

ISkiaSharpPlatformGraphicsApiLease? TryLeasePlatformGraphicsApi()

Returns​

ISkiaSharpPlatformGraphicsApiLease?

A platform graphics lease when supported; otherwise null.