Click or drag to resize
AB4D logo

DXSceneRenderToGpuBitmap(Int32, Int32, Int32, Int32) Method

RenderToGpuBitmap renders the 3D scene to the GPU's Texture2D with the specified width, height, multisampling and supersamplingCount count. The color data in the returned Texture2D is stored in the GPU memory. To read the data from the created texture use ReadSinglePixelColor(Texture2D, Int32, Int32, Format) or ReadColors(Texture2D, Int32, Int32, Int32, Int32, Format, Int32) methods.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.2.9484.2048 (1.0.0.0)
Syntax
C#
public Texture2D RenderToGpuBitmap(
	int width,
	int height,
	int multisampling,
	int supersamplingCount
)

Parameters

width  Int32
width of the created Texture2D
height  Int32
height of the created Texture2D
multisampling  Int32
multisampling count that is used to render the image
supersamplingCount  Int32
super-sampling count (possible values: 1 no super-sampling, 4, 16, 64)

Return Value

Texture2D
Texture2D
See Also