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

    Interface DecodedImage

    An image's own size, as its bytes declare it — before any sizing key is applied. width/height are in PDF points: a raster image has pixels and a resolution, and turning that into points is decode's job so nothing downstream has to think about DPI.

    interface DecodedImage {
        bytes: Uint8Array;
        format: ImageFormat;
        height: number;
        pixelHeight: number;
        pixelWidth: number;
        width: number;
    }
    Index
    bytes: Uint8Array

    The bytes, unchanged, ready for pdf/render.ts to embed as an XObject.

    format: ImageFormat
    height: number

    Intrinsic height in points.

    pixelHeight: number
    pixelWidth: number
    width: number

    Intrinsic width in points.