Table of Contents

Interface IPlatformRenderInterfaceContext

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll
[Unstable]
[PrivateApi]
public interface IPlatformRenderInterfaceContext : IOptionalFeatureProvider, IDisposable
Inherited Members
Extension Methods

Properties

IsLost

Indicates that the context is no longer usable. This method should be thread-safe

bool IsLost { get; }

Property Value

bool

PublicFeatures

Exposes features that should be available for consumption while context isn't active (e. g. from the UI thread)

IReadOnlyDictionary<Type, object> PublicFeatures { get; }

Property Value

IReadOnlyDictionary<Type, object>

Methods

CreateOffscreenRenderTarget(PixelSize, double)

Creates an offscreen render target

IDrawingContextLayerImpl CreateOffscreenRenderTarget(PixelSize pixelSize, double scaling)

Parameters

pixelSize PixelSize

The size, in pixels, of the render target

scaling double

The scaling which will be reported by IBitmap.Dpi

Returns

IDrawingContextLayerImpl

CreateRenderTarget(IEnumerable<object>)

Creates a renderer.

IRenderTarget CreateRenderTarget(IEnumerable<object> surfaces)

Parameters

surfaces IEnumerable<object>

The list of native platform surfaces that can be used for output.

Returns

IRenderTarget

An IRenderTarget.