Image Class

The image is the base class for all type of drawings.
Inheritance Hierarchy

Namespace:  Aspose.CAD
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 20.9
Syntax
public abstract class Image : DataStreamSupporter, 
	IObjectWithBounds

The Image type exposes the following members.

Constructors
  NameDescription
Protected methodImage
Initializes a new instance of the Image class.
Protected methodImage(IColorPalette)
Initializes a new instance of the Image class.
Properties
  NameDescription
Public propertyCode exampleAttributes
Gets the attributes collection.
Public propertyBackgroundColor Obsolete.
Gets or sets a value for the background color.
Public propertyCode exampleBounds
Gets the image bounds.
Public propertyCode exampleContainer
Gets the Image container.
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 propertyHasBackgroundColor Obsolete.
Gets or sets a value indicating whether image has background color.
Public propertyCode exampleHeight
Gets the image height.
Public propertyIsCached
Gets a value indicating whether object's data is cached currently and no data readig is required.
(Inherited from DataStreamSupporter.)
Public propertyCode examplePalette
Gets or sets the color palette.
Public propertyCode exampleSize
Gets the image size.
Public propertyUnitlessDefaultUnitType
Assumed unit type when UnitType is set to Unitless
Public propertyCode exampleUnitType
Gets current unit type.
Public propertyCode exampleWidth
Gets the image width.
Methods
  NameDescription
Public methodCacheData
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Inherited from DataStreamSupporter.)
Public methodStatic memberCode exampleCanLoad(Stream)
Determines whether image can be loaded from the specified stream.
Public methodStatic memberCode exampleCanLoad(String)
Determines whether image can be loaded from the specified file path.
Public methodStatic memberCode exampleCanLoad(Stream, LoadOptions)
Determines whether image can be loaded from the specified stream and optionally using the specified loadOptions.
Public methodStatic memberCode exampleCanLoad(String, LoadOptions)
Determines whether an image can be loaded from the specified file path and optionally using the specified open options
Public methodCode exampleCanSave
Determines whether image can be saved to the specified file format represented by the passed save options.
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.)
Public methodCode exampleGetAttributeValue
Gets attribute value.
Public methodStatic memberCode exampleGetFileFormat(Stream)
Gets the file format.
Public methodStatic memberCode exampleGetFileFormat(String)
Gets the file format.
Protected methodGetFitRectangle(Rectangle)
Gets rectangle which fits the current 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.
Protected methodStatic memberGetFittingRectangle(Rectangle, Int32, Int32)
Gets rectangle which fits the current drawing.
Protected methodStatic memberGetFittingRectangle(Rectangle, Int32, Int32, Int32)
Gets rectangle which fits the current image.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodStatic memberCode exampleLoad(Stream)
Loads a new image from the specified stream.
Public methodStatic memberCode exampleLoad(String)
Loads a new image from the specified file.
Public methodStatic memberCode exampleLoad(Stream, LoadOptions)
Loads a new image from the specified stream.
Public methodStatic memberCode exampleLoad(String, LoadOptions)
Loads a new image from the specified file.
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.
Protected methodOnPaletteChanging
Called when palette is changing.
Protected methodReleaseContents
Releases the contents of image - all entities, objects, etc, so it won't hold any references so memory could be collected
Protected methodReleaseManagedResources
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Overrides DataStreamSupporterReleaseManagedResources.)
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.
(Overrides DataStreamSupporterSave.)
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.
Public methodCode exampleSave(String, ImageOptionsBase)
Saves the object's data to the specified file location in the specified file format according to save options.
Protected methodSaveData
Saves the data.
(Inherited from DataStreamSupporter.)
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.
Protected fieldTimeout
The timeout to wait for synchronization
(Inherited from DataStreamSupporter.)
Protected fieldunitType
Unit type of an image.
See Also
Inheritance Hierarchy