 |
SceneViewRenderToRawImageData(RawImageData, Boolean, Boolean, StandardBitmapFormats) Method |
Renders the current scene view to the bitmap and saves the image data into an existing
RawImageData object.
When the rendered size is the same or smaller, then the existing Data array is preserved, otherwise a new Data array is created.
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 void RenderToRawImageData(
RawImageData rawImageData,
bool renderNewFrame = true,
bool preserveGpuBuffer = false,
StandardBitmapFormats format = StandardBitmapFormats.Undefined
)
Parameters
- rawImageData RawImageData
- existing RawImageData
- 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 RenderToBitmap. 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 Format of RawImageData is used)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.RenderToRawImageData(Ab4d.SharpEngine.Common.RawImageData,System.Boolean,System.Boolean,Ab4d.SharpEngine.Common.StandardBitmapFormats)"]
See Also