Class DgnImage

DgnImage class

Dgn image class

public class DgnImage : Image, IHasEntities<DgnDrawableEntityBase>, 
    IHasLayouts<IDrawingLayout<DgnDrawableEntityBase>, DgnDrawableEntityBase>

Properties

NameDescription
virtual AnnotationService { get; }Gets the annotation service.
Bounds { get; }Gets the image bounds.
Container { get; }Gets the Image container.
virtual CustomProperties { get; }Gets or sets the custom properties.
DataStreamContainer { get; }Gets the object’s data stream.
override Depth { get; }Gets the image depth.
Disposed { get; }Gets a value indicating whether this instance is disposed.
Entities { get; }
override Height { get; }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 { get; }Gets a value indicating whether file is 3D or not
IsCached { get; }Gets a value indicating whether object’s data is cached currently and no data reading is required.
Layouts { get; }
MaxPoint { get; }Gets the max point.
MinPoint { get; }Gets the min point.
Palette { get; set; }Gets or sets the color palette.
Size { get; }Gets the image size.
SubUnitType { get; }Gets current sub-unit type.
Tags { get; }Gets the tags.
virtual UnitlessDefaultUnitType { get; }Assumed unit type when UnitType is set to Unitless
virtual UnitType { get; }Gets current unit type.
Version { get; }Gets DGN version of loaded image
Views { get; }Gets the views.
virtual WatermarkGuardService { get; }
override Width { get; }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

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.
override GetStrings()Gets all string values from image.
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.
override ThrowIfCantExportToCad(ImageOptionsBase, Exception)
TryRemoveEntity(DgnDrawableEntityBase)

See Also