 |
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.WpfAssembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic WriteableBitmap? RenderToBitmap(
bool renderNewFrame = true
)
Parameters
- renderNewFrame Boolean (Optional)
- true (by default) to always render a new frame
Return Value
WriteableBitmapWPF's WriteableBitmap or null if the scene cannot be rendered (for example if SceneView was not yet initialized)
See Also