Click or drag to resize
Ab4d.SharpEngine logo

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.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public 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

RawImageData
RawImageData that contains the rendered bitmap
See Also