Click or drag to resize

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
)

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: Bitmap
The preview bitmap if successful, null otherwise.
See Also