Table of Contents

Class DgnImage

Namespace
Aspose.CAD.FileFormats.Dgn
Assembly
Aspose.CAD.dll

Dgn image class

[ComVisible(false)]
public class DgnImage : Image, IDisposable, IObjectWithBounds, IHasEntities<DgnDrawableEntityBase>, IHasLayouts<IDrawingLayout<DgnDrawableEntityBase>, DgnDrawableEntityBase>
Inheritance
DgnImage
Implements
Inherited Members

Properties

Depth

Gets the image depth.

Entities

Gets all entities that exist on a drawing. Could be useful for walking through them and check its properties

Height

Gets the image height. Defines the Y-axis distance between the bottommost point of all graphical objects in the image and their topmost point. The distance is measured in units corresponding to the value of the property UnitType

Is3DImage

Gets a value indicating whether file is 3D or not

IsCached

Gets a value indicating whether object's data is cached currently and no data reading is required.

Layouts

Collection of related pages(layouts)

MaxPoint

Gets the max point.

MinPoint

Gets the min point.

SubUnitType

Gets current sub-unit type.

Tags

Gets the tags.

Version

Gets DGN version of loaded image

Views

Gets the views.

Width

Gets the image width. Defines the X-axis distance between the leftmost point of all graphic objects in the image and their rightmost point. The distance is measured in units corresponding to the value of the property UnitType

Methods

CacheData()

Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.

GetStrings()

Gets all string values from image.

ReleaseContents()

Releases the contents of image - all entities, objects, etc, so it won't hold any references so memory could be collected

SaveData(Stream)

Saves the object's data to the specified stream.

ThrowIfCantExportToCad(ImageOptionsBase, Exception)

Throw exception if can`t export

TryRemoveEntity(DgnDrawableEntityBase)

Removes entity from drawing if present