Initializerswift-png 4.4.5PNG
init(parsing:)
Creates a suggested palette by parsing the given chunk data.
PNG.SuggestedPalette.swift:54init(parsing data: [UInt8]) throws
Parameters
Other members in extension
Types
enum Entries
A variant array of palette colors and frequencies.
Type members
init(name: String, entries: Entries
) Creates a suggested palette.
Instance members
var entries: Entries
The colors in this suggested palette, and their frequencies.
let name: String
The name of this suggested palette.
var serialized: [UInt8]
Encodes this suggested palette as the contents of an
sPLT
chunk.