init(parsing:)

    Creates a suggested palette by parsing the given chunk data.

    PNG.SuggestedPalette.swift:54
    init(parsing data: [UInt8]) throws

    Parameters

    data

    The contents of an sPLT chunk to parse.

    Other members in extension

    Types

    • enum Entries

      A variant array of palette colors and frequencies.

    Type members

    Instance members