Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Interface ImageStream

    One PDF image XObject, described without a single PDF object — so the format knowledge lives here and the object graph lives in pdf/render.ts.

    interface ImageStream {
        bitsPerComponent: number;
        colorSpace: ImageColorSpace;
        data: Uint8Array;
        decodeParms: PngPredictor | null;
        filter: "DCTDecode" | "FlateDecode" | null;
        height: number;
        smask: ImageStream | null;
        width: number;
    }
    Index
    bitsPerComponent: number
    colorSpace: ImageColorSpace
    data: Uint8Array
    decodeParms: PngPredictor | null
    filter: "DCTDecode" | "FlateDecode" | null

    /Filter. null means data is raw samples and the writer may compress it however it likes — the only case is a PNG whose alpha had to be split out, because that path has already inflated the data.

    height: number
    smask: ImageStream | null

    /SMask: the alpha channel, as its own single-channel image.

    width: number

    /Width and /Height, in samples.