Class EncodedImageData
Encapsulates raw encoded image bytes plus metadata (size, bits/component, color space, filters, optional alpha) for PDF embedding or decoding.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Resources
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class EncodedImageData
Constructors
EncodedImageData(Byte[], Byte[], Int32, Int32, Int32, String, String[])
Create an image descriptor from encoded bytes with an optional alpha channel matching size/bits/filters.
Declaration
public EncodedImageData(byte[] data, byte[] alphaChannel, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
Parameters
|
System.Byte[]
data
The data. |
|
System.Byte[]
alphaChannel
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. |
|
System.Int32
bitsPerComponent
The bits per component. |
|
System.Int32
width
The width. |
|
System.Int32
height
The height. |
|
System.String
colorSpace
The color space. |
|
System.String[]
filters
The filters. |
EncodedImageData(Byte[], Int32, Int32, Int32, String, String[])
Create an image descriptor from encoded bytes without an alpha channel.
Declaration
public EncodedImageData(byte[] data, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
Parameters
|
System.Byte[]
data
The data. |
|
System.Int32
bitsPerComponent
The bits per component. |
|
System.Int32
width
The width. |
|
System.Int32
height
The height. |
|
System.String
colorSpace
The color space. |
|
System.String[]
filters
The filters. |
Properties
AlphaChannel
Optional encoded alpha channel matching dimensions/bits/filters of Data; always interpreted in DeviceGray.
Declaration
public byte[] AlphaChannel { get; }
Property Value
|
System.Byte[]
|
BitsPerComponent
Number of bits used to store each color component sample.
Declaration
public int BitsPerComponent { get; }
Property Value
|
System.Int32
The bits per component. |
ColorSpace
PDF color space name associated with the encoded data (e.g., DeviceRGB, DeviceGray, DeviceCMYK).
Declaration
public string ColorSpace { get; }
Property Value
|
System.String
The color space. |
Data
Encoded image byte stream (compressed per Filters).
Declaration
public byte[] Data { get; }
Property Value
|
System.Byte[]
The data. |
Filters
Ordered list of PDF filter names applied to Data (decode in sequence).
Declaration
public string[] Filters { get; }
Property Value
|
System.String[]
The filters. |
Height
Image height in pixels.
Declaration
public int Height { get; }
Property Value
|
System.Int32
The height. |
Width
Image width in pixels.
Declaration
public int Width { get; }
Property Value
|
System.Int32
The width. |