Class PdfDecodedImage
Decoded image pixels plus an optional separate alpha plane (SMask / Mask).
public sealed record PdfDecodedImage : IEquatable<PdfDecodedImage>
- Inheritance
-
PdfDecodedImage
- Implements
- Inherited Members
Constructors
PdfDecodedImage(int, int, PdfDecodedImageFormat, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>?, bool, Func<byte[], int, int, int, byte[]>?)
Decoded image pixels plus an optional separate alpha plane (SMask / Mask).
public PdfDecodedImage(int Width, int Height, PdfDecodedImageFormat Format, ReadOnlyMemory<byte> Data, ReadOnlyMemory<byte>? Alpha = null, bool InvertCmykJpeg = false, Func<byte[], int, int, int, byte[]>? MapJpegComponents = null)
Parameters
WidthintHeightintFormatPdfDecodedImageFormatDataReadOnlyMemory<byte>AlphaReadOnlyMemory<byte>?Width×Height 8-bit alpha applied on top of Data; null when opaque or already in Bgra32.
InvertCmykJpegboolJPEG is Adobe-style inverted CMYK that the backend must un-invert.
MapJpegComponentsFunc<byte[], int, int, int, byte[]>
Properties
Alpha
Width×Height 8-bit alpha applied on top of Data; null when opaque or already in Bgra32.
public ReadOnlyMemory<byte>? Alpha { get; init; }
Property Value
ByteSize
public long ByteSize { get; }
Property Value
Data
public ReadOnlyMemory<byte> Data { get; init; }
Property Value
Format
public PdfDecodedImageFormat Format { get; init; }
Property Value
Height
public int Height { get; init; }
Property Value
InvertCmykJpeg
JPEG is Adobe-style inverted CMYK that the backend must un-invert.
public bool InvertCmykJpeg { get; init; }
Property Value
JpegIsSelfContained
For a JPEG: its own colours are a fair rendition even when MapJpegComponents is set (a device or ICC colour space whose mapping only adds colour management), so a consumer without a JPEG codec, such as a document exporter, may embed the data as it is.
public bool JpegIsSelfContained { get; init; }
Property Value
JpegMask
A soft mask the core cannot decode (a JPEG): the backend decodes it and applies it as alpha.
public PdfJpegMask? JpegMask { get; init; }
Property Value
MapJpegComponents
public Func<byte[], int, int, int, byte[]>? MapJpegComponents { get; init; }
Property Value
Width
public int Width { get; init; }