This documentation is for the old version. Go to the latest Graphics Mill docs

VObjectsRubberband.RenderWorkspace Method (Single)

Exports all v-objects of a workspace as Bitmap with a transparent background and specified resolution.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)

Syntax

Visual Basic
Public Function RenderWorkspace ( _
	renderingResolution As Single _
) As Bitmap
C#
public Bitmap RenderWorkspace(
	float renderingResolution
)

Parameters

renderingResolution

Type: System.Single

The desired resolution of the output bitmap.

Return Value

Bitmap which contains the rasterized image.

Remarks

This method returns a bitmap with v-objects rendered on a transparent background. The bitmap is automatically cropped to the size of the bitmap for which the rubberband is created.

The result bitmap does not contain the background bitmap loaded in the host control. It contains only those v-objects which belong to this rubberband. If you need to merge it with the background, you should draw the result bitmap on the background explicitly.

See Also

Reference