Class
Image

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

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Objects

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class Image : PositionContentElement, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseContentElementBasePositionContentElementImage

Implements: IFixedDocumentElement

Inherited Members PositionContentElement.PositionContentElementBase.ClippingFixedDocumentElementBase.Parent

Constructors

Image()

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

Declaration

cs-api-definition
public Image()

Properties

AlphaConstant

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

Declaration

cs-api-definition
public double? AlphaConstant { get; set; }

Property Value

double?

The alpha constant.

Height

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

Declaration

cs-api-definition
public double Height { get; set; }

Property Value

double

The height value.

ImageSource

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

Declaration

cs-api-definition
public ImageSource ImageSource { get; set; }

Property Value

ImageSource

The ImageSource object containing the image data and format information.

Width

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

Declaration

cs-api-definition
public double Width { get; set; }

Property Value

double

The width value.

Methods

Clone()

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

Declaration

cs-api-definition
public Image Clone()

Returns

Image

CreateClonedInstance<T>()

Creates the cloned instance.

Declaration

cs-api-definition
protected override T CreateClonedInstance<T>() where T : PositionContentElement

Returns

T

The cloned instance.

Overrides PositionContentElement.CreateClonedInstance<T>()

GetBitmapSource()

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

Declaration

cs-api-definition
public BitmapSource GetBitmapSource()

Returns

BitmapSource

The BitmapSource instance.