New to Telerik Document ProcessingStart a free 30-day trial

Encapsulates raw encoded image bytes plus metadata (size, bits/component, color space, filters, optional alpha) for PDF embedding or decoding.

Definition

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

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class EncodedImageData

Inheritance: objectEncodedImageData

Constructors

Create an image descriptor from encoded bytes with an optional alpha channel matching size/bits/filters.

C#
public EncodedImageData(byte[] data, byte[] alphaChannel, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
Parameters:databyte[]

The data.

alphaChannelbyte[]

The alpha channel data. This data should be encoded with same bitsPerComponent, width, height and filters as the image data. The colorspace of the alpha channel is not related to the colorspace of the image data and the alpha data colorspace is always DeviceGray.

bitsPerComponentint

The bits per component.

widthint

The width.

heightint

The height.

colorSpacestring

The color space.

filtersstring[]

The filters.

Create an image descriptor from encoded bytes without an alpha channel.

C#
public EncodedImageData(byte[] data, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
Parameters:databyte[]

The data.

bitsPerComponentint

The bits per component.

widthint

The width.

heightint

The height.

colorSpacestring

The color space.

filtersstring[]

The filters.

Properties

Optional encoded alpha channel matching dimensions/bits/filters of Data; always interpreted in DeviceGray.

C#
public byte[] AlphaChannel { get; }

Number of bits used to store each color component sample.

C#
public int BitsPerComponent { get; }
Property Value:

The bits per component.

PDF color space name associated with the encoded data (e.g., DeviceRGB, DeviceGray, DeviceCMYK).

C#
public string ColorSpace { get; }
Property Value:

The color space.

Encoded image byte stream (compressed per Filters).

C#
public byte[] Data { get; }
Property Value:

The data.

Ordered list of PDF filter names applied to Data (decode in sequence).

C#
public string[] Filters { get; }
Property Value:

The filters.

Image height in pixels.

C#
public int Height { get; }
Property Value:

The height.

Image width in pixels.

C#
public int Width { get; }
Property Value:

The width.