ImageClass
Definition
- Namespace
- DOM.Elements.Graphics
- Assembly
- DOM.dll
Represents an image element that can be inserted into a document.
Remarks
extends and provides loading, sizing, positioning, and export facilities for raster images (PNG, JPEG, GIF, BMP, TIFF). It corresponds to a <w:drawing> element (inline or anchored) in WordprocessingML and to <img> in HTML. Image Graphic Images can be loaded from a file, stream, or an existing . Their intrinsic dimensions are captured during load so that the document layout can preserve aspect ratio unless explicitly overridden via . Image SetDimensions
Examples
Constructors
Initialises a new empty instance. Image
Initialises a new instance from a file path. Image
Initialises a new instance from a stream. Image
Initialises a new instance from an existing . Image, Image
Properties
Gets or sets the image payload (Base64 encoded content and metadata).
Gets or sets the detected image type (PNG, JPEG, GIF, BMP, TIFF, etc.).
Methods
Creates a deep clone of this image element.
Exports the current image to a file, optionally re-encoding it to a different format.
Exports the current image to a stream, optionally re-encoding it to a different format.
Loads image data from a file into this instance.
Loads image data from a stream into this instance.