Instance Propertyswift-png 4.4.5PNG
entries
The entries in this palette.
PNG.Palette.swift:13let entries: [(r: UInt8, g: UInt8, b: UInt8)]
Other members in extension
Type members
init(entries: [(r: UInt8, g: UInt8, b: UInt8)], pixel: PNG.Format.Pixel
) Creates an image palette.
init(parsing: [UInt8], pixel: PNG.Format.Pixel
) throws Creates an image palette by parsing the given chunk data, interpreting and validating it according to the given
pixel
format.
Instance members
var serialized: [UInt8]
Encodes this image palette as the contents of a
PLTE
chunk.