png-compressor
    Preparing search index...

    Interface IPngMetadataSuggestedPaletteEntry

    A suggested palette entry.

    interface IPngMetadataSuggestedPaletteEntry {
        alpha: number;
        blue: number;
        frequency: number;
        green: number;
        red: number;
    }
    Index

    Properties

    alpha: number

    The alpha channel of the entry, the range of this depends on the sampleDepth of the palette:

    • 8: 0-255
    • 16: 0-65535
    blue: number

    The blue channel of the entry, the range of this depends on the sampleDepth of the palette:

    • 8: 0-255
    • 16: 0-65535
    frequency: number

    The frequency of the entry which is proportional to the amount of pixels in the image that use the entry. The scale of the frequency is up to the encoder.

    green: number

    The green channel of the entry, the range of this depends on the sampleDepth of the palette:

    • 8: 0-255
    • 16: 0-65535
    red: number

    The red channel of the entry, the range of this depends on the sampleDepth of the palette:

    • 8: 0-255
    • 16: 0-65535