Interface ISkiaSharpApiLease
Namespace: Avalonia.Skia
Assembly: Avalonia.Skia.dll, VelloSharp.Avalonia.Vello.dll
[Unstable]
public interface ISkiaSharpApiLease : IDisposable
Implements
Properties
CurrentOpacity
double CurrentOpacity { get; }
Property Value
CurrentOpacity
Gets the effective opacity applied to draw operations.
double CurrentOpacity { get; }
Property Value
GrContext
GRContext? GrContext { get; }
Property Value
GrContext
Gets the optional Skia GPU context associated with the lease.
GRContext? GrContext { get; }
Property Value
SkCanvas
SKCanvas SkCanvas { get; }
Property Value
SkCanvas
Gets the Skia canvas that should receive draw commands.
SKCanvas SkCanvas { get; }
Property Value
SkSurface
SKSurface? SkSurface { get; }
Property Value
SkSurface
Gets the surface that backs the leased canvas.
SKSurface? SkSurface { get; }
Property Value
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.