Click or drag to resize

DisplayPipelineDrawToBitmap Method

Draw a given viewport to an off-screen bitmap.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Bitmap DrawToBitmap(
	RhinoViewport viewport,
	int width,
	int height
)

Parameters

viewport
Type: Rhino.DisplayRhinoViewport
Viewport to draw.
width
Type: SystemInt32
Width of target image.
height
Type: SystemInt32
Height of target image.

Return Value

Type: Bitmap
A bitmap containing the given view, or null on error.
See Also