InstanceDefinition.CreatePreviewBitmap Method (Guid, DefinedViewportProjection, DisplayMode, Size, Boolean)

InstanceDefinitionCreatePreviewBitmap Method (Guid, DefinedViewportProjection, DisplayMode, Size, Boolean)

Creates a preview bitmap of the instance definition.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.21
Syntax
public Bitmap CreatePreviewBitmap(
	Guid definitionObjectId,
	DefinedViewportProjection definedViewportProjection,
	DisplayMode displayMode,
	Size bitmapSize,
	bool applyDpiScaling
)
Public Function CreatePreviewBitmap ( 
	definitionObjectId As Guid,
	definedViewportProjection As DefinedViewportProjection,
	displayMode As DisplayMode,
	bitmapSize As Size,
	applyDpiScaling As Boolean
) As Bitmap

Parameters

definitionObjectId
Type: SystemGuid
Id of one of this definition's objects to draw selected.
definedViewportProjection
Type: Rhino.DisplayDefinedViewportProjection
The view projection.
displayMode
Type: Rhino.DocObjectsDisplayMode
The display mode.
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