 |
SharpEngineSceneViewRenderToBitmap(WriteableBitmap, Boolean) Method |
RenderToBitmap method renders the current scene to the specified Avalonia'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.AvaloniaUIAssembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic 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
Booleantrue when the rendered scene was copied to the specified WriteableBitmap
See Also