Initializerswift-png 4.4.5PNG
init(parsing:standard:)
Creates an image header by parsing the given chunk data, interpreting it according to the given PNG standard
.
init(parsing data: [UInt8], standard: PNG.Standard) throws
Parameters
Other members in extension
Type members
init(size: (x: Int, y: Int), pixel: Format.Pixel, interlaced: Bool, standard: PNG.Standard
) Creates an image header.
Instance members
let interlaced: Bool
The size of an image, measured in pixels.
let pixel: Format.Pixel
The size of an image, measured in pixels.
var serialized: [UInt8]
Encodes this image header as the contents of an
IHDR
chunk.let size: (x: Int, y: Int)
The size of an image, measured in pixels.