InstanceDefinitionCreatePreviewBitmap Method (Guid, DefinedViewportProjection, IsometricCamera, Boolean, Size, Boolean) |
Creates a preview bitmap of the instance definition.
Namespace:
Rhino.DocObjects
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.10
Syntax public Bitmap CreatePreviewBitmap(
Guid displayModeId,
DefinedViewportProjection viewportProjection,
IsometricCamera isometricCamera,
bool drawDecorations,
Size bitmapSize,
bool applyDpiScaling
)
Public Function CreatePreviewBitmap (
displayModeId As Guid,
viewportProjection As DefinedViewportProjection,
isometricCamera As IsometricCamera,
drawDecorations As Boolean,
bitmapSize As Size,
applyDpiScaling As Boolean
) As Bitmap
Parameters
- displayModeId
- Type: SystemGuid
The id of the display mode to draw with. - viewportProjection
- Type: Rhino.DisplayDefinedViewportProjection
The view projection. - isometricCamera
- Type: Rhino.DisplayIsometricCamera
The isometric camera angle. - drawDecorations
- Type: SystemBoolean
Specify true to draw viewport decorations, such as grid and axes. - bitmapSize
- Type: System.DrawingSize
The bitmap size in pixels. - applyDpiScaling
- Type: SystemBoolean
Specify true to apply DPI scaling (Windows-only).
Return Value
Type:
BitmapThe preview bitmap if successful, null otherwise.
See Also