Skip to content

BitmapTable

Public Class

Stores the list of bitmaps in a Rhino document.

Inheritance Hierarchy

System.Object
Rhino.FileIO.CommonComponentTable. BitmapEntry.
Rhino.DocObjects.Tables.RhinoDocCommonTable. BitmapEntry.
Rhino.DocObjects.Tables.BitmapTable

Namespace: Rhino.DocObjects.Tables

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class BitmapTable : RhinoDocCommonTable<BitmapEntry>,
ICollection<BitmapEntry>, IEnumerable<BitmapEntry>, IEnumerable

The BitmapTable type exposes the following members.

Properties

Name

Description


Public Property

Returns Image.

(Overrides

.)


Public Property

Returns the count of all items, including deleted ones.

(Inherited from CommonComponentTable.T..)


Public Property

Document that owns this table.

(Inherited from RhinoDocCommonTable.T..)


Public Property

Conceptually, the bitmap table is an array of bitmaps. The operator[] can be used to get individual bitmaps.


Methods

Name

Description


Public Method

Adds a new bitmap with specified name to the bitmap table.


Public Method

Marks all items as deleted.

(Inherited from CommonComponentTable.T..)


Public Method

Removes the bitmap from the table.

(Overrides

.)


Public Method

Deletes a bitmap.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method

Writes a bitmap to a file.


Public Method

Exports all the bitmaps in the table to files.


Public Method

This function first attempts to find the file with “name” on the disk. If it does find it, “fileName” is set to the full path of the file and the BitmapEntry returned will be null, even if there was a BitmapEntry with “name” in the bitmap table. If the function cannot find the file on the disk, it searches the bitmap table. If it finds it, the returned BitmapEntry entry will be the entry in the table with that name. Additionally, if “createFile” is true, and an entry is found, the file will be written to the disk and it’s full path will be contained in “fileName”.


Public Method

Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.

(Inherited from CommonComponentTable.T..)


Public Method

Retrieves a BitmapEntry object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.


Public Method

Returns the enumerator that yields all items.

(Inherited from CommonComponentTable.T..)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)