Click or drag to resize
AB4D logo

BaseCameraRenderToBitmap Method (Brush, Int32)

Renders TargetViewport3D to bitmap with specifed 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: 10.1.8147.1045
public RenderTargetBitmap RenderToBitmap(
	Brush backgroundBrush = null,
	int dpi = 96


backgroundBrush (Optional)
Type: System.Windows.MediaBrush
brush used for background or null to have no background. Default value is null.
dpi (Optional)
Type: SystemInt32
DPI settinig for the rendered bitmap. Default value is 96

Return Value

Type: RenderTargetBitmap
See Also