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:
public class EncodedImageData
Inheritance: objectEncodedImageData
Constructors
Create an image descriptor from encoded bytes with an optional alpha channel matching size/bits/filters.
public EncodedImageData(byte[] data, byte[] alphaChannel, int bitsPerComponent, int width, int height, string colorSpace, string[] filters)
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.
bitsPerComponentintThe bits per component.
widthintThe width.
heightintThe height.
colorSpacestringThe color space.
filtersstring[]The filters.
Create an image descriptor from encoded bytes without an alpha channel.
Properties
Optional encoded alpha channel matching dimensions/bits/filters of Data; always interpreted in DeviceGray.
public byte[] AlphaChannel { get; }
Number of bits used to store each color component sample.
public int BitsPerComponent { get; }
The bits per component.
PDF color space name associated with the encoded data (e.g., DeviceRGB, DeviceGray, DeviceCMYK).
public string ColorSpace { get; }
The color space.
Encoded image byte stream (compressed per Filters).
public byte[] Data { get; }
The data.
Ordered list of PDF filter names applied to Data (decode in sequence).
public string[] Filters { get; }
The filters.