Click or drag to resize
Ab4d.SharpEngine logo

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.

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