Instance Propertyswift-png 4.4.5PNG
case
The value of this background descriptor.
PNG.Background.swift:16let `case`: Case
Other members in extension
Types
enum Case
A background case. This is a separate type for validation purposes.
Type members
init(case: Case, pixel: PNG.Format.Pixel, palette: PNG.Palette?
) Creates a background descriptor.
init(parsing: [UInt8], pixel: PNG.Format.Pixel, palette: PNG.Palette?
) throws Creates a background descriptor by parsing the given chunk data, interpreting and validating it according to the given
pixel
format and imagepalette
.
Instance members
var serialized: [UInt8]
Encodes this background descriptor as the contents of a
bKGD
chunk.