Enumeration Caseswift-png 4.4.5PNG

    indexed2(palette:fill:)

    A 2-bit indexed color format.

    PNG.Format.swift:156
    case indexed2(palette: [(r: UInt8, g: UInt8, b: UInt8, a: UInt8)], fill: Int?)

    Parameters

    palette

    The palette values referenced by an image with this color format. This palette must be non-empty, and can have at most 4 entries.

    fill

    A palette index specifying an optional background color. This index must be within the index range of the palette array.

    Most PNG viewers ignore this field.

    This color format has a pixel format of indexed2.

    Other cases