Class
ImageSource

Wraps image bytes and format information for embedding and reuse across document parts.

Definition

Namespace:Telerik.Windows.Documents.Media

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class ImageSource

Inheritance: objectImageSource

Derived Classes: UriImageSource

Constructors

ImageSource(Stream, string)

Initializes a new instance of the ImageSource class.

Declaration

cs-api-definition
public ImageSource(Stream stream, string extension)

Parameters

stream

Stream

The stream which represents the image.

extension

string

The format of the image.

ImageSource(byte[], string)

Initializes a new instance of the ImageSource class.

Declaration

cs-api-definition
public ImageSource(byte[] data, string extension)

Parameters

data

byte[]

Byte array containing representation of the image source.

extension

string

The image file extension.

Properties

Data

Gets the byte array representation of the image source.

Declaration

cs-api-definition
public virtual byte[] Data { get; }

Property Value

byte[]

The byte array representation of the image source.

Extension

Gets the image file extension.

Declaration

cs-api-definition
public virtual string Extension { get; }

Property Value

string

The image file extension.