Click or drag to resize
AB4D logo

BaseCameraRenderToBitmap(Brush, Int32) Method

Renders TargetViewport3D to bitmap with specified backgroundBrush and dpi. The size of the created bitmap is the same as the size of the TargetViewport3D.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public RenderTargetBitmap RenderToBitmap(
	Brush backgroundBrush = null,
	int dpi = 96
)

Parameters

backgroundBrush  Brush  (Optional)
brush used for background or null to have no background. Default value is null.
dpi  Int32  (Optional)
DPI setting for the rendered bitmap. Default value is 96

Return Value

RenderTargetBitmap
RenderTargetBitmap
See Also