BitmapTableAddBitmap Method |
Adds a new bitmap with specified name to the bitmap table.
Namespace:
Rhino.DocObjects.Tables
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic int AddBitmap(
string bitmapFilename,
bool replaceExisting
)
Public Function AddBitmap (
bitmapFilename As String,
replaceExisting As Boolean
) As Integer
Parameters
- bitmapFilename
- Type: SystemString
If NULL or empty, then a unique name of the form "Bitmap 01" will be automatically created.
- replaceExisting
- Type: SystemBoolean
If true and the there is alread a bitmap using the specified name, then that bitmap is replaced.
If false and there is already a bitmap using the specified name, then -1 is returned.
Return Value
Type:
Int32
index of new bitmap in table on success. -1 on error.
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also