Image

Image class

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

public abstract class Image : DataStreamSupporter, IObjectWithBounds

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.
virtual Depth { get; }Gets the image depth.
Disposed { get; }Gets a value indicating whether this instance is disposed.
abstract Height { get; }Gets the image height.
abstract IsCached { get; }Gets a value indicating whether object’s data is cached currently and no data reading is required.
Palette { get; set; }Gets or sets the color palette.
Size { get; }Gets the image size.
virtual UnitType { get; }Gets current unit type.
virtual UnitlessDefaultUnitType { get; }Assumed unit type when UnitType is set to Unitless
virtual WatermarkGuardService { get; }
abstract Width { get; }Gets the image width.

Methods

NameDescription
abstract CacheData()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
static CanLoad(Stream)Determines whether image can be loaded from the specified stream.
static CanLoad(string)Determines whether image can be loaded from the specified file path.
static CanLoad(Stream, LoadOptions)Determines whether image can be loaded from the specified stream and optionally using the specified loadOptions.
static 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.
Dispose()Disposes the current instance.
static GetFileFormat(Stream)Gets the file format.
static GetFileFormat(string)Gets the file format.
virtual GetStrings()Gets all string values from image.
static Load(Stream)Loads a new image from the specified stream.
static Load(string)Loads a new image from the specified file.
static Load(Stream, LoadOptions)Loads a new image from the specified stream.
static Load(string, LoadOptions)Loads a new image from the specified file.
static Load(Stream, string, LoadOptions)Loads a new image from the specified stream.
override 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.

See Also