RhinoCommon API
InstanceDefinitionCreatePreviewBitmap Method (DefinedViewportProjection, DisplayMode, Size) |
Creates a preview bitmap of the instance definition.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public Bitmap CreatePreviewBitmap( DefinedViewportProjection definedViewportProjection, DisplayMode displayMode, Size bitmapSize )
Public Function CreatePreviewBitmap ( definedViewportProjection As DefinedViewportProjection, displayMode As DisplayMode, bitmapSize As Size ) As Bitmap
Parameters
- definedViewportProjection
- Type: Rhino.DisplayDefinedViewportProjection
The view projection. - displayMode
- Type: Rhino.DocObjectsDisplayMode
The display mode. - bitmapSize
- Type: System.DrawingSize
The bitmap size in pixels.
Return Value
Type: BitmapThe preview bitmap if successful, null otherwise.