Table of Contents

Interface IRenderTarget

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

Defines a render target

[PrivateApi]
public interface IRenderTarget : IDisposable
Inherited Members

Remarks

The interface used for obtaining drawing context from surfaces you can render on.

Properties

IsCorrupted

Indicates if the render target is no longer usable and needs to be recreated

bool IsCorrupted { get; }

Property Value

bool

Methods

CreateDrawingContext(bool)

Creates an IDrawingContextImpl for a rendering session.

IDrawingContextImpl CreateDrawingContext(bool useScaledDrawing)

Parameters

useScaledDrawing bool

Apply DPI reported by the render target as a hidden transform matrix

Returns

IDrawingContextImpl