Initializerswift-png 4.4.5PNG
init(parsing:)
Creates a color profile by parsing the given chunk data.
PNG.ColorProfile.swift:51init(parsing data: [UInt8]) throws
Parameters
Other members in extension
Type members
init(name: String, profile: [UInt8]
) Creates a color profile.
Instance members
var description: String
let name: String
The name of this profile.
let profile: [UInt8]
The uncompressed ICC color profile data.
var serialized: [UInt8]
Encodes this color profile as the contents of an
iCCP
chunk.