Class CadImage
- Namespace
- Aspose.CAD.FileFormats.Cad
- Assembly
- Aspose.CAD.dll
Cad image class
[ComVisible(false)]
public class CadImage : Image, IDisposable, IObjectWithBounds, IHasEntities<CadEntityBase>, IHasLayouts<CadLayout, CadEntityBase>
- Inheritance
-
CadImage
- Implements
- Derived
- Inherited Members
Constructors
- CadImage()
Initializes a new instance of the CadImage class.
Fields
Properties
- ActivePage
Gets the active page.
- AppIdTables
Gets or sets the application identifier tables.
- ApplicationVersion
Gets or sets the application version.
- BlockEntities
Gets or sets the block entities.
- BlocksTables
Gets or sets the blocks tables.
- CadAcds
Gets or sets the CadAcds list
- ClassEntities
Gets or sets the class entities.
- CustomProperties
Gets or sets the custom properties.
- DefaultFont
Gets or sets the default font.
- DefaultLineWeight
Gets or sets the default line weight.
- DimensionStyles
Gets or sets the dimension styles.
- Entities
Gets or sets the entities.
- FileEncoding
Gets file's encoding
- Header
Gets or sets the header.
- Height
Gets the image height.
- IsCached
Gets a value indicating whether object's data is cached currently and no data reading is required.
- Layers
Gets or sets the layers.
- Layouts
Gets the layouts with information specific to AutoCAD formats.
- LineTypes
Gets or sets the dimension styles.
- MaintenanceVersion
Gets or sets the maintenance version.
- MaxPoint
Gets the max point.
- MinPoint
Gets the min point.
- Objects
Gets or sets the objects.
- SpecifiedEncoding
Gets or sets the specified encoding.
- SpecifiedMifEncoding
Gets or sets the specified MIF character encoding
- Styles
Gets or sets the styles.
- ThumbnailImage
Gets or sets the thumbnail image.
- UCSs
Gets or sets the uc ss.
- ViewPorts
Gets or sets the view ports.
- Views
Gets or sets the views.
- Width
Gets the image width.
Methods
- CacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
- GetBounds()
Fills Bounds property (contain minimum and maximum point of entity) for all entities.
- GetBounds(CadEntityBase)
Fills Bounds property (contains minimum and maximum point) for entity.
- 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
- RemoveImage(CadEntityBase)
Removes raster image.
- SaveData(Stream)
Saves the object's data to the specified stream.
- ThrowIfCantExportToCad(ImageOptionsBase, Exception)
Throw exception if can`t export
- TryRemoveEntity(CadEntityBase)
Removes entity from blocks for DWG format.
- UpdateSize(bool)
Updates size of an image after changes, that may affect initial size, e.g. removing of entities. MinPoint, MaxPoint, Width and Height properties of image are updated.