Interface IRenderTarget
Provides access to a target framebuffer for rendering frames.
Namespace: MarcusW.VncClient.Rendering
Assembly: MarcusW.VncClient.dll
Syntax
public interface IRenderTarget
Remarks
This is an abstraction around the different framebuffer access methods for rendering backends like Avalonia (Skia, Direct2D, ...), WPF and others.
Methods
| Improve this Doc View SourceGrabFramebufferReference(Size, IImmutableSet<Screen>)
Locks the native framebuffer in memory and returns a reference to it. The returned object should be disposed after rendering is finished.
Must only be used by one thread at a time.
The framebuffer should be re-created in case the size
changes.
Declaration
IFramebufferReference GrabFramebufferReference(Size size, IImmutableSet<Screen> layout)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The required frame size. |
IImmutableSet<Screen> | layout | The screens that are contained by the frame (if supported). |
Returns
Type | Description |
---|---|
IFramebufferReference | The framebuffer reference. |