PeachImage
PeachImage.Formats.Png
PngPassthroughInfo Struct
The raw, CRC-validated PNG chunk data needed to embed a PNG’s compressed pixel stream directly into
another container (e.g. a PDF /FlateDecode image stream) without inflating/deflating it. See
TryRead(Stream, PngPassthroughInfo).
public readonly record struct PngPassthroughInfo : System.IEquatable<PeachImage.Formats.Png.PngPassthroughInfo>
Implements System.IEquatable<PngPassthroughInfo>
| Constructors | |
|---|---|
| PngPassthroughInfo(int, int, PngColorType, byte, bool, bool, bool, byte[], byte[], byte[], byte[]) | The raw, CRC-validated PNG chunk data needed to embed a PNG’s compressed pixel stream directly into another container (e.g. a PDF /FlateDecode image stream) without inflating/deflating it. See TryRead(Stream, PngPassthroughInfo). |
| Properties | |
|---|---|
| BitDepth | IHDR bit depth. |
| ColorType | IHDR color type. |
| HasTrns | Whether a tRNS chunk is present. |
| Height | IHDR height, in pixels. |
| IccProfileData | The inflated ICC profile bytes from an iCCP chunk (already zlib-decompressed — unlike every other field on this type, since the profile itself is stored compressed in the file and there is no byte-for-byte “verbatim” form to hand back), or null if no iCCP chunk is present or it could not be parsed/decompressed. |
| IdatData | The concatenated, CRC-validated IDAT chunk payloads, in file order — a complete zlib (RFC 1950) stream, byte-for-byte as it appears in the file. |
| IsAnimated | Whether an acTL chunk is present (the file is an APNG). IdatData is still the default image’s data; PeachImage does not interpret animation frames. |
| IsInterlaced | Whether IHDR declares Adam7 interlacing. Adam7 data cannot be used as a PDF image stream as-is. |
| PaletteData | The raw PLTE chunk bytes (tightly packed RGB triples), or null if ColorType is not Palette. |
| TrnsData | The raw tRNS chunk bytes, or null if HasTrns is false. |
| Width | IHDR width, in pixels. |