Chartbreaker
    Preparing search index...

    Interface PngConfig

    interface PngConfig {
        backgroundIndex?: number;
        compressionLevel?: 0 | 1 | 2 | 3 | 7 | 8 | 4 | 5 | 6 | 9;
        filters?: number;
        palette?: Uint8ClampedArray<ArrayBufferLike>;
        resolution?: number;
    }
    Index

    Properties

    backgroundIndex?: number

    For creating indexed PNGs. The index of the background color. Defaults to 0.

    compressionLevel?: 0 | 1 | 2 | 3 | 7 | 8 | 4 | 5 | 6 | 9

    Specifies the ZLIB compression level. Defaults to 6.

    filters?: number

    Any bitwise combination of PNG_FILTER_NONE, PNG_FILTER_SUB, PNG_FILTER_UP, PNG_FILTER_AVG and PNG_FILTER_PATETH; or one of PNG_ALL_FILTERS or PNG_NO_FILTERS (all are properties of the canvas instance). These specify which filters may be used by libpng. During encoding, libpng will select the best filter from this list of allowed filters. Defaults to canvas.PNG_ALL_FILTERS.

    palette?: Uint8ClampedArray<ArrayBufferLike>

    For creating indexed PNGs. The palette of colors. Entries should be in RGBA order.

    resolution?: number

    pixels per inch