Returns or sets the background bitmap of the specified view.To remove a wallpaper bitmap, pass an empty string, or "", as the filename to display.
Rhino.BackgroundBitmap ([strView [, strFileName [, arrPoint [, dblWidth]]]])
strView |
可选参数。字符串。The title or identifier of the view.If omitted, the current active view is used. |
||||||||||||||
|
可选参数。字符串。The name of the bitmap file to set as the background bitmap.The supported bitmap file formats are as follows:
|
||||||||||||||
arrPoint |
可选参数。Array.A 3-D point the lower left corner of the background bitmap.If omitted, the background bitmap's lower left corner will be located at the world origin, or (0,0,0). |
||||||||||||||
dblWidth |
可选参数。Number.The width of the background bitmap.If omitted, the actual width of the bitmap will be used. |
String |
If strFileName is not specified, then the current background bitmap filename if successful. |
String |
If strFileName is specified, then the previous background bitmap filename if successful. |
Null |
如果执行不成功或出错,返回空值。 |
Dim strView
strView = Rhino.CurrentView
If Not Rhino.IsBackgroundBitmap(strView) Then
Rhino.BackgroundBitmap strView, "C:\Windows\Coffee Bean.bmp", Array(0,0,0), 25
End If