Click or drag to resize
Ab4d.SharpEngine logo

SharpEngineSceneViewRenderToBitmap(Boolean) Method

RenderToBitmap method renders the current scene to a new WPF'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.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public WriteableBitmap? RenderToBitmap(
	bool renderNewFrame = true
)

Parameters

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

Return Value

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

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Wpf.SharpEngineSceneView.RenderToBitmap(System.Boolean)"]

See Also