DgnImage Class

Dgn image class
Inheritance Hierarchy
SystemObject
  Aspose.CADDisposableObject
    Aspose.CADDataStreamSupporter
      Aspose.CADImage
        Aspose.CAD.FileFormats.DgnDgnImage

Namespace:  Aspose.CAD.FileFormats.Dgn
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 21.3
Syntax
public class DgnImage : Image

The DgnImage type exposes the following members.

Properties
  NameDescription
Public propertyBackgroundColor Obsolete.
Gets or sets a value for the background color.
(Inherited from Image.)
Public propertyCode exampleBounds
Gets the image bounds.
(Inherited from Image.)
Public propertyCode exampleContainer
Gets the Image container.
(Inherited from Image.)
Public propertyDataStreamContainer
Gets the object's data stream.
(Inherited from DataStreamSupporter.)
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyElements
Gets elements were read from source file
Public propertyHasBackgroundColor Obsolete.
Gets or sets a value indicating whether image has background color.
(Inherited from Image.)
Public propertyHeight
Gets the image height.
(Overrides ImageHeight.)
Public propertyIs3DImage
Gets a value indicating whether file is 3D or not
Public propertyIsCached
Gets a value indicating whether object's data is cached currently and no data reading is required.
(Overrides DataStreamSupporterIsCached.)
Public propertyMaxPoint
Gets the max point.
Public propertyMinPoint
Gets the min point.
Public propertyCode examplePalette
Gets or sets the color palette.
(Inherited from Image.)
Protected propertyPreviousFontFolders
Font folders that were used before image was loaded
(Inherited from Image.)
Public propertyCode exampleSize
Gets the image size.
(Inherited from Image.)
Public propertySubUnitType
Gets current sub-unit type.
Public propertyTags
Gets the tags.
Public propertyUnitlessDefaultUnitType
Assumed unit type when UnitType is set to Unitless
(Inherited from Image.)
Public propertyCode exampleUnitType
Gets current unit type.
(Inherited from Image.)
Public propertyVersion
Gets DGN version of loaded image
Public propertyViews
Gets the views.
Public propertyWidth
Gets the image width.
(Overrides ImageWidth.)
Methods
  NameDescription
Public methodCacheData
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Overrides DataStreamSupporterCacheData.)
Public methodCode exampleCanSave
Determines whether image can be saved to the specified file format represented by the passed save options.
(Inherited from Image.)
Public methodDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Protected methodDoAfterSave
Does the after save.
(Inherited from DataStreamSupporter.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the DisposableObject class.
(Inherited from DisposableObject.)
Protected methodGetFitRectangle(Rectangle)
Gets rectangle which fits the current image.
(Inherited from Image.)
Protected methodGetFitRectangle(Rectangle, Int32)
Gets rectangle which fits the current bitmap taking into account the pixels passed. The passed pixels array count should be equal to the fitting rectangle size.
(Inherited from Image.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetStrings
Gets all string values from image.
(Overrides ImageGetStrings.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDataStreamContainerChanging
Called when data stream container is changing.
(Inherited from DataStreamSupporter.)
Protected methodOnPaletteChanged
Called when palette is changed.
(Inherited from Image.)
Protected methodOnPaletteChanging
Called when palette is changing.
(Inherited from Image.)
Protected methodReleaseContents
Releases the contents of image - all entities, objects, etc, so it won't hold any references so memory could be collected
(Overrides ImageReleaseContents.)
Protected methodReleaseManagedResources
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from Image.)
Protected methodReleaseUnmanagedResources
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.)
Public methodCode exampleSave
Saves the image data to the underlying stream.
(Inherited from Image.)
Public methodSave(Stream)
Saves the object's data to the specified stream.
(Inherited from DataStreamSupporter.)
Public methodSave(String)
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.)
Public methodSave(String, Boolean)
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.)
Public methodCode exampleSave(Stream, ImageOptionsBase)
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.)
Public methodCode exampleSave(String, ImageOptionsBase)
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.)
Protected methodSaveData
Saves the object's data to the specified stream.
(Overrides DataStreamSupporterSaveData(Stream).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodVerifyNotDisposed
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.)
Fields
  NameDescription
Protected fieldloadOptions
Options this image was loaded with.
(Inherited from Image.)
Protected fieldpreviousFontFolders
Stores font folders used before loading of this image to be restored after.
(Inherited from Image.)
Protected fieldsubUnitType
Sub-unit type of an image.
Protected fieldTimeout
The timeout to wait for synchronization
(Inherited from DataStreamSupporter.)
Protected fieldunitType
Unit type of an image.
(Inherited from Image.)
See Also