New to Telerik Document Processing? Start a free 30-day trial

Image

Class

Positioned raster image element that draws pixels from an ImageSource with optional dimension overrides and transparency.

Definition

Namespace:Telerik.Documents.Fixed.Model.Objects

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class Image : PositionContentElement, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseContentElementBasePositionContentElementImage

Implements: IFixedDocumentElement

Inherited Members PositionContentElement.PositionContentElementBase.ClippingFixedDocumentElementBase.Parent

Constructors

Initializes a new image element with default size inferred from its source when assigned.

C#
public Image()

Properties

Gets or sets the constant opacity applied to non‑stroking paint operations.

C#
public double? AlphaConstant { get; set; }
Property Value:

The alpha constant.

Gets or sets the display height overriding the intrinsic bitmap height when specified.

C#
public double Height { get; set; }
Property Value:

The height value.

Gets or sets the image data container supplying pixel dimensions and encoded content.

C#
public ImageSource ImageSource { get; set; }
Property Value:

The ImageSource object containing the image data and format information.

Gets or sets the display width overriding the intrinsic bitmap width when specified.

C#
public double Width { get; set; }
Property Value:

The width value.

Methods

Creates and returns a deep copy of this image including dimension overrides and stencil settings.

C#
public Image Clone()
Returns:

Image

Creates the cloned instance.

C#
protected override T CreateClonedInstance<T>() where T : PositionContentElement
Returns:

T

The cloned instance.

Overrides: PositionContentElement.CreateClonedInstance<T>()

Creates and returns a WPF BitmapSource for this image, applying stencil color if present.

C#
public BitmapSource GetBitmapSource()
Returns:

BitmapSource

The BitmapSource instance.