TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Render Method (, Single, , , Boolean, WorkspaceTransformParams, Nullable(RectangleF))

Renders the canvas to a Bitmap.

Namespace: Aurigma.DesignAtoms.Rendering
Assembly: Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)

Syntax

C#
public virtual Bitmap Render(
	ICanvas canvas,
	float dpi,
	ColorSpace colorSpace,
	Color backgroundColor,
	bool isPreview,
	WorkspaceTransformParams workspaceTransformParams,
	Nullable<RectangleF> cropArea
)

Parameters

canvas

Type: ICanvas

A canvas to render.
dpi

Type: System.Single

The resulting image resolution.
colorSpace

Type: ColorSpace

The resulting ColorSpace.
backgroundColor

Type: Color

The resulting background Color.
isPreview

Type: System.Boolean

Defines whether the resulting image is a low resolution preview.
workspaceTransformParams

Type: Aurigma.DesignAtoms.Rendering.WorkspaceTransformParams

Defines whether the resulting image should be flipped, rotated, or rendered as is.
cropArea

Type: System.Nullable<RectangleF>

A rectangle defining the region to be printed.

Return Value

A Bitmap representing the rendered canvas.

See Also

Reference