Click or drag to resize

DisplayPipelineDrawToBitmap Method

Draw a given viewport to an off-screen bitmap.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also