Click or drag to resize
AB4D logo

DXViewRenderToBitmap(Int32, Int32, Int32, Int32, Boolean) Method


Namespace: Ab3d.DirectX.Controls
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public BitmapSource RenderToBitmap(
	int width,
	int height,
	int preferedMultisampling = -1,
	int supersamplingCount = 1,
	bool convertToNonPreMultipledAlpha = false
)

Parameters

width  Int32
width of the rendered bitmap
height  Int32
height of the rendered bitmap
preferedMultisampling  Int32  (Optional)
multi-sampling count that is used to render the image (used if possible). When -1 is specified (by default), then the current multi-sampling count from DXScene is used.
supersamplingCount  Int32  (Optional)
super-sampling count (possible values: 1 no super-sampling, 4, 16, 64)
convertToNonPreMultipledAlpha  Boolean  (Optional)
when true (false by default) then the image in converted into non-premultiplied alpha (this can be used when saving to png file that does not support pre-multiplied alpha)

Return Value

BitmapSource
BitmapSource as rendered the 3D scene
See Also