BackgroundBitmap - PYTHON 不支持

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:

Type

描述

bmp

Windows Bitmap

tga

Truevision Targa

jpg, jpeg

JPEG Compliant

pcx

Zsoft Paintbrush

png

Portable Network Graphics

tif, tiff

Tagged Image File Format

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

同见

IsBackgroundBitmap

Wallpaper