|
SceneViewRenderToGpuImage Method |
Renders the current scene view to the bitmap and saves the image data a GpuImage that is passed to the specified stagingGpuImageReady Action.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public void RenderToGpuImage(
bool renderNewFrame = true,
bool preserveGpuImage = true,
StandardBitmapFormats format = StandardBitmapFormats.Undefined,
Action<GpuImage>? stagingGpuImageReady = null
)
Parameters
- renderNewFrame Boolean (Optional)
- renders a new frame before creating a bitmap (true by default)
- preserveGpuImage Boolean (Optional)
- when true then the GpuImage is preserved for the next call of RenderToBitmap. When false then the used GpuImage is disposed before returning from this method. (false by default).
- format StandardBitmapFormats (Optional)
- format of the rendered bitmap (Undefined by default - in this case the value of the SceneView.Format is used)
- stagingGpuImageReady ActionGpuImage (Optional)
- Action that will copy the data from the staging GpuImage
See Also