Instance Propertyswift-png 4.4.5PNG
serialized
Encodes this image palette as the contents of a PLTE
chunk.
var serialized: [UInt8] { get }
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
let entries: [(r: UInt8, g: UInt8, b: UInt8)]
The entries in this palette.