 |
SceneViewRenderToRawImageData(Boolean, Boolean, StandardBitmapFormats) Method |
Renders the current scene view to the bitmap that is represented by
RawImageData object.
To reuse the RawImageData and its data array, call RenderToRawImageData that takes RawImageData as the first parameter.
To render to a different size or different multi-sample or super-sampling count, create a new SceneView and call RenderToRawImageData there.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic RawImageData RenderToRawImageData(
bool renderNewFrame = true,
bool preserveGpuBuffer = false,
StandardBitmapFormats format = StandardBitmapFormats.Undefined
)
Parameters
- renderNewFrame Boolean (Optional)
- renders a new frame before creating a bitmap (true by default)
- preserveGpuBuffer Boolean (Optional)
- when true then the GpuBuffer is preserved for the next call of RenderToRawImageData. When false (by default) then the used GpuBuffer is disposed before returning from this method.
- format StandardBitmapFormats (Optional)
- format of the rendered bitmap (Undefined by default - in this case the value of the SceneView.Format is used)
Return Value
RawImageDataRawImageData that contains the rendered bitmap
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.RenderToRawImageData(System.Boolean,System.Boolean,Ab4d.SharpEngine.Common.StandardBitmapFormats)"]
See Also