ClassEncodedImageData
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:
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
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
The bits per component.
width
The width.
height
The height.
colorSpace
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
public EncodedImageData(byte[] data, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
Parameters
data
byte[]
The data.
bitsPerComponent
The bits per component.
width
The width.
height
The height.
colorSpace
The color space.
filters
string[]
The filters.
Properties
AlphaChannel
Optional encoded alpha channel matching dimensions/bits/filters of Data; always interpreted in DeviceGray.
BitsPerComponent
Number of bits used to store each color component sample.
Declaration
public int BitsPerComponent { get; }
Property Value
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
The color space.
Height
Image height in pixels.