Extracts the bitmap preview image from the specified model (.3dm).
Rhino.ExtractPreviewImage (strFileName [, strModelName])
strFileName |
Required. String. The name of the bitmap file to create. The extension of the filename controls the format of the bitmap file created.
|
||||||||||||||
strModelName |
Optional. String. The model (.3dm) from which to extract the preview image. If omitted, the currently loaded model is used. |
Boolean |
True or False indicating success or failure. |
Dim blnResult
blnResult = Rhino.ExtractPreviewImage("test.jpg")
If blnResult = True Then
Rhino.Print "Test.jpg created successfully."
Else
Rhino.Print "Unable to extract preview image."
End If