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