DisplayPipeline.DrawToBitmap Method

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
)
Public Shared Function DrawToBitmap ( 
	viewport As RhinoViewport,
	width As Integer,
	height As Integer
) As Bitmap

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.14
See Also