Click or drag to resize
Ab4d.SharpEngine logo

SharpEngineSceneViewRenderToBitmap(Boolean) Method

RenderToBitmap method renders the current scene to a new Avalonia's WriteableBitmap. To reuse the WriteableBitmap, call the method that takes the WriteableBitmap by ref. See also the RenderToXXXX methods in the SceneView object.

Namespace: Ab4d.SharpEngine.AvaloniaUI
Assembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public WriteableBitmap? RenderToBitmap(
	bool renderNewFrame = true
)

Parameters

renderNewFrame  Boolean  (Optional)
true (by default) to always render a new frame

Return Value

WriteableBitmap
Avalonia's WriteableBitmap or null if the scene cannot be rendered (for example if SceneView was not yet initialized)
See Also