Class
EncodedImageData

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:

cs-api-definition
public class EncodedImageData

Inheritance: objectEncodedImageData

Constructors

EncodedImageData(byte[], byte[], int, int, int, string, string[])

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

Declaration

cs-api-definition
public EncodedImageData(byte[] data, byte[] alphaChannel, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)

Parameters

data

byte[]

The data.

alphaChannel

byte[]

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.

bitsPerComponent

int

The bits per component.

width

int

The width.

height

int

The height.

colorSpace

string

The color space.

filters

string[]

The filters.

EncodedImageData(byte[], int, int, int, string, string[])

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

Declaration

cs-api-definition
public EncodedImageData(byte[] data, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)

Parameters

data

byte[]

The data.

bitsPerComponent

int

The bits per component.

width

int

The width.

height

int

The height.

colorSpace

string

The color space.

filters

string[]

The filters.

Properties

AlphaChannel

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

Declaration

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

Property Value

byte[]

BitsPerComponent

Number of bits used to store each color component sample.

Declaration

cs-api-definition
public int BitsPerComponent { get; }

Property Value

int

The bits per component.

ColorSpace

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

Declaration

cs-api-definition
public string ColorSpace { get; }

Property Value

string

The color space.

Data

Encoded image byte stream (compressed per Filters).

Declaration

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

Property Value

byte[]

The data.

Filters

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

Declaration

cs-api-definition
public string[] Filters { get; }

Property Value

string[]

The filters.

Height

Image height in pixels.

Declaration

cs-api-definition
public int Height { get; }

Property Value

int

The height.

Width

Image width in pixels.

Declaration

cs-api-definition
public int Width { get; }

Property Value

int

The width.