Class CadImage

CadImage class

Cad image class

public class CadImage : Image

Constructors

NameDescription
CadImage()Initializes a new instance of the CadImage class.

Properties

NameDescription
ActivePage { get; }Gets the active page.
AppIdTables { get; set; }Gets or sets the application identifier tables.
ApplicationVersion { get; set; }Gets or sets the application version.
virtual BackgroundColor { get; set; }Gets or sets a value for the background color.
BlockEntities { get; set; }Gets or sets the block entities.
BlocksTables { get; set; }Gets or sets the blocks tables.
Bounds { get; }Gets the image bounds.
CadAcds { get; set; }Gets or sets the CadAcds list
ClassEntities { get; set; }Gets or sets the class entities.
Container { get; }Gets the Image container.
DataStreamContainer { get; }Gets the object’s data stream.
DefaultFont { get; set; }Gets or sets the default font.
DefaultLineWeight { get; set; }Gets or sets the default line weight.
DimensionStyles { get; set; }Gets or sets the dimension styles.
Disposed { get; }Gets a value indicating whether this instance is disposed.
Entities { get; set; }Gets or sets the entities.
FileEncoding { get; set; }Gets file’s encoding
virtual HasBackgroundColor { get; set; }Gets or sets a value indicating whether image has background color.
Header { get; set; }Gets or sets the header.
override Height { get; }Gets the image height.
IsCached { get; }Gets a value indicating whether object’s data is cached currently and no data reading is required.
Layers { get; set; }Gets or sets the layers.
Layouts { get; }Gets the layouts.
LineTypes { get; set; }Gets or sets the dimension styles.
MaintenanceVersion { get; set; }Gets or sets the maintenance version.
MaxPoint { get; }Gets the max point.
MinPoint { get; }Gets the min point.
Objects { get; set; }Gets or sets the objects.
Palette { get; set; }Gets or sets the color palette.
SectionsData { get; set; }Get or sets the sectionsData
Size { get; }Gets the image size.
SpecifiedEncoding { get; set; }Gets or sets the specified encoding.
SpecifiedMifEncoding { get; set; }Gets or sets the specified MIF character encoding
Styles { get; set; }Gets or sets the styles.
ThumbnailImage { get; set; }Gets or sets the thumbnail image.
UCSs { get; set; }Gets or sets the uc ss.
virtual UnitlessDefaultUnitType { get; }Assumed unit type when UnitType is set to Unitless
UnitType { get; }Gets current unit type.
ViewPorts { get; set; }Gets or sets the view ports.
Views { get; set; }Gets or sets the views.
override Width { get; }Gets the image width.

Methods

NameDescription
CacheData()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
CanSave(ImageOptionsBase)Determines whether image can be saved to the specified file format represented by the passed save options.
Dispose()Disposes the current instance.
GetBounds()Fills Bounds property (contain minimum and maximum point of entity) for all entities.
GetBounds(CadBaseEntity)Fills Bounds property (contains minimum and maximum point) for entity.
override GetStrings()Gets all string values from image.
virtual RemoveEntity(CadBaseEntity)Removes enity.
RemoveEntityAt(int)Removes entity by its position.
Save()Saves the image data to the underlying stream.
Save(Stream)Saves the object’s data to the specified stream.
virtual Save(string)Saves the object’s data to the specified file location.
Save(Stream, ImageOptionsBase)Saves the image’s data to the specified stream in the specified file format according to save options.
virtual Save(string, bool)Saves the object’s data to the specified file location.
virtual Save(string, ImageOptionsBase)Saves the object’s data to the specified file location in the specified file format according to save options.
SaveAsync(Stream, ImageOptionsBase)Saves the image’s data to the specified stream in the specified file format according to save options.
virtual SaveAsync(string, ImageOptionsBase)Saves the object’s data to the specified file location in the specified file format according to save options.
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.

See Also