|  | 
| SharpEngineSceneViewRenderToBitmap(WriteableBitmap, Boolean) Method | 
            RenderToBitmap method renders the current scene to the specified WinUI's WriteableBitmap.
            The size of the specified WriteableBitmap must be the same as the size of the SceneView or an exception will be thrown.
            See also the RenderToXXXX methods in the SceneView object.
            
Namespace: Ab4d.SharpEngine.WinUIAssembly: Ab4d.SharpEngine.WinUI (in Ab4d.SharpEngine.WinUI.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
 Syntax
Syntaxpublic void RenderToBitmap(
	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
true when the rendered scene was copied to the specified WriteableBitmap
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentException | ArgumentException is thrown if the size of the specified WriteableBitmap is not the same as the size of the SceneView | 
 See Also
See Also