Table of Contents

Class Image

Namespace
MigraDoc.DocumentObjectModel.Shapes
Assembly
MigraDoc.DocumentObjectModel.dll

Represents an image in the document or paragraph.

public class Image : Shape
Inheritance
object
Image
Inherited Members
Extension Methods

Constructors

Image()

Initializes a new instance of the Image class.

Image(string)

Initializes a new instance of the Image class from the specified (file) name.

Properties

Interpolate

Gets or sets a flag indicating whether image interpolation is to be performed. Defaults to true.

LockAspectRatio

Gets or sets whether the AspectRatio of the image is kept unchanged. If both Width and Height are set, this property is ignored.

Name

Gets or sets the name of the image.

PictureFormat

Gets or sets the PictureFormat for the image.

Resolution

Gets or sets a user-defined resolution for the image in dots per inch.

ScaleHeight

Gets or sets the ScaleHeight of the image. If the Height is set, too, the resulting image height is ScaleHeight * Height.

ScaleWidth

Gets or sets the ScaleWidth of the image. If the Width is set, too, the resulting image width is ScaleWidth * Width.

Values

Gets the underlying internal nullable values for the properties of this document object.

Methods

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.

GetFilePath(string)

Gets the concrete image path, taking into account the DOM document’s DdlFile and ImagePath properties as well as the given working directory (which can be null).