New to Telerik Document ProcessingStart a free 30-day trial

Image

Updated on Feb 19, 2026

Image is a content element, which contains an ImageSource and represents an image. It can be added in the Content collection of a IContainerElement such as RadFixedPage.

Public API

PropertyDescription
ImageSourceSpecifies the ImageSource that will be visualized in the Image object.
WidthThe width of the image.
HeightThe height of the image.
PositionThe Position of the image inside the IContainerElement.
AlphaConstantSpecifies the constant shape or constant opacity value to be used for nonstroking operations.
MethodDescription
GetBitmapSource (Unavailable in .NET Standard)Creates a BitmapSource from the image element.
Clone (since Q2 2025)Creates a deep copy of this document element.

Working With an Image

You can edit an Image element using the properties the class exposes. The properties are listed in the Public API section.

As of Q3 2024 RadPdfProcessing provides support for SVG FormSource(vector graphics image format): Adding SVG FormSource into a Document.

Example 1 shows how to initialize an Image object, assigns an ImageSource to it and add it to a previously defined container (page).

Example 1: Create image

c#
RadFixedDocument fixedDocument = new RadFixedDocument();
RadFixedPage fixedPage = fixedDocument.Pages.AddPage();

Telerik.Windows.Documents.Fixed.Model.Objects.Image img = new Telerik.Windows.Documents.Fixed.Model.Objects.Image();
string imageFilePath = "ProgressNinjas.png";
using (FileStream fileStream = new FileStream(imageFilePath, FileMode.Open))
{
    ImageSource imageSrc = new ImageSource(fileStream);
    img.ImageSource = imageSrc;
    img.Width = 200;
    img.Height = 200;
    img.AlphaConstant = 0.5;
    SimplePosition simplePosition = new SimplePosition();
    simplePosition.Translate(200, 300);
    img.Position = simplePosition;
    fixedPage.Content.Add(img);
}

Once the above RadFixedDocument is exported, the following document with an image is created:

Image in RadFixedPage

Example 2 demonstrates how to use one of the factory methods of the ContentElementCollection to create a new image and insert it into the respective container.

Example 2: Add image to container

c#
ImageSource imageSource;
string filename = "my-image.png";
using (FileStream fileSource = File.Open(filename, FileMode.Open))
{
    imageSource = new ImageSource(fileSource);
}

Telerik.Windows.Documents.Fixed.Model.Objects.Image emptyImage = container.Content.AddImage();
Telerik.Windows.Documents.Fixed.Model.Objects.Image imageWithSource = container.Content.AddImage(imageSource);

There are other methods that allow adding an image to a document by passing image size, format and source. They could be used through the FixedContentEditor class.

The Image class exposes also the GetBitmapSource() method, enabling you to obtain a BitmapSource instance representing the image.

The GetBitmapSource() method is not available in the .NET Standard version of the PdfProcessing packages.

Example 3: Obtain BitmapSource

c#
BitmapSource source = imageWithSource.GetBitmapSource();

See Also