Click or drag to resize
Ab4d.SharpEngine logo

SharpEngineSceneViewRenderToBitmap(WriteableBitmap, Boolean) Method

RenderToBitmap method renders the current scene to the specified WPF's WriteableBitmap. If the WriteableBitmap is null of its size is not the same as the size of the SceneView, then the WriteableBitmap is resized. See also the RenderToXXXX methods in the SceneView object.

Namespace: Ab4d.SharpEngine.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public bool RenderToBitmap(
	ref WriteableBitmap?? writeableBitmap,
	bool renderNewFrame = true
)

Parameters

writeableBitmap  WriteableBitmap
WriteableBitmap that will get the rendered scene
renderNewFrame  Boolean  (Optional)
true (by default) to always render a new frame

Return Value

Boolean
true when the rendered scene was copied to the specified WriteableBitmap
See Also