Class Image
The image is the base class for all type of drawings.
[ComVisible(false)]
public abstract class Image : DataStreamSupporter, IDisposable, IObjectWithBounds
- Inheritance
-
Image
- Implements
- Derived
- Inherited Members
Constructors
- Image(IColorPalette)
Initializes a new instance of the Image class.
Fields
- loadOptions
Options this image was loaded with.
- localFontCache
The local font cache
- previousFontFolders
Stores font folders used before loading of this image to be restored after.
- unitType
Unit type of an image.
Properties
- AnnotationService
Gets the annotation service.
- Bounds
Gets the image bounds.
- CustomProperties
Gets or sets the custom properties.
- Depth
Gets the image depth.
- Height
Gets the image height.
- Palette
Gets or sets the color palette.
- PreviousFontFolders
Font folders that were used before image was loaded
- Size
Gets the image size.
- UnitType
Gets current unit type.
- UnitlessDefaultUnitType
Assumed unit type when UnitType is set to Unitless
- Width
Gets the image width.
Methods
- CanLoad(Stream)
Determines whether image can be loaded from the specified stream.
- CanLoad(Stream, LoadOptions)
Determines whether image can be loaded from the specified stream and optionally using the specified
loadOptions
.
- CanLoad(string)
Determines whether image can be loaded from the specified file path.
- CanLoad(string, LoadOptions)
Determines whether an image can be loaded from the specified file path and optionally using the specified open options
- CanSave(ImageOptionsBase)
Determines whether image can be saved to the specified file format represented by the passed save options.
- GetFileFormat(Stream)
Gets the file format.
- GetFileFormat(string)
Gets the file format.
- GetFitRectangle(Rectangle)
Gets rectangle which fits the current image.
- GetFitRectangle(Rectangle, int[])
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.
- GetFittingRectangle(Rectangle, int, int)
Gets rectangle which fits the current drawing.
- GetFittingRectangle(Rectangle, int[], int, int)
Gets rectangle which fits the current image.
- GetStrings()
Gets all string values from image.
- Load(Stream)
Loads a new image from the specified stream.
- Load(Stream, LoadOptions)
Loads a new image from the specified stream.
- Load(Stream, string, LoadOptions)
Loads a new image from the specified stream.
- Load(string)
Loads a new image from the specified file.
- Load(string, LoadOptions)
Loads a new image from the specified file.
- OnPaletteChanged(IColorPalette, IColorPalette)
Called when palette is changed.
- OnPaletteChanging(IColorPalette, IColorPalette)
Called when palette is changing.
- ProcessOptionsAfterLoad(Image, LoadOptions)
Processes load options that have to be set after image's loading (as they save something in the image).
- ReleaseContents()
Releases the contents of image - all entities, objects, etc, so it won't hold any references so memory could be collected
- ReleaseManagedResources()
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
- Save()
Saves the image data to the underlying stream.
- Save(Stream, ImageOptionsBase)
Saves the image's data to the specified stream in the specified file format according to save options.
- 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.
- SaveAsync(string, ImageOptionsBase)
Saves the object's data to the specified file location in the specified file format according to save options.
- ThrowIfCantExportToCad(ImageOptionsBase, Exception)
Throw exception if can`t export