RhinoCommon API
DisplayPipelineDrawToBitmap Method |
Draw a given viewport to an off-screen bitmap.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

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: BitmapA bitmap containing the given view, or null on error.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14