Enumeration Caseswift-png 4.4.5PNG
v2(fill:key:)
A 2-bit grayscale color format.
PNG.Format.swift:42case v2(fill: UInt8?, key: UInt8?)
Parameters
Other cases
case v1(fill: UInt8?, key: UInt8?)
A 1-bit grayscale color format.
case v4(fill: UInt8?, key: UInt8?)
A 4-bit grayscale color format.
case v8(fill: UInt8?, key: UInt8?)
An 8-bit grayscale color format.
case v16(fill: UInt16?, key: UInt16?)
A 16-bit grayscale color format.
case bgr8(palette: [(b: UInt8, g: UInt8, r: UInt8)], fill: (b: UInt8, g: UInt8, r: UInt8)?, key: (b: UInt8, g: UInt8, r: UInt8)?)
An 8-bit BGR color format.
case rgb8(palette: [(r: UInt8, g: UInt8, b: UInt8)], fill: (r: UInt8, g: UInt8, b: UInt8)?, key: (r: UInt8, g: UInt8, b: UInt8)?)
An 8-bit RGB color format.
case rgb16(palette: [(r: UInt8, g: UInt8, b: UInt8)], fill: (r: UInt16, g: UInt16, b: UInt16)?, key: (r: UInt16, g: UInt16, b: UInt16)?)
A 16-bit RGB color format.
case indexed1(palette: [(r: UInt8, g: UInt8, b: UInt8, a: UInt8)], fill: Int?)
A 1-bit indexed color format.
case indexed2(palette: [(r: UInt8, g: UInt8, b: UInt8, a: UInt8)], fill: Int?)
A 2-bit indexed color format.
case indexed4(palette: [(r: UInt8, g: UInt8, b: UInt8, a: UInt8)], fill: Int?)
A 4-bit indexed color format.
case indexed8(palette: [(r: UInt8, g: UInt8, b: UInt8, a: UInt8)], fill: Int?)
An 8-bit indexed color format.
case va8(fill: UInt8?)
An 8-bit grayscale-alpha color format.
case va16(fill: UInt16?)
A 16-bit grayscale-alpha color format.
case bgra8(palette: [(b: UInt8, g: UInt8, r: UInt8)], fill: (b: UInt8, g: UInt8, r: UInt8)?)
An 8-bit BGRA color format.
case rgba8(palette: [(r: UInt8, g: UInt8, b: UInt8)], fill: (r: UInt8, g: UInt8, b: UInt8)?)
An 8-bit RGBA color format.
case rgba16(palette: [(r: UInt8, g: UInt8, b: UInt8)], fill: (r: UInt16, g: UInt16, b: UInt16)?)
A 16-bit RGBA color format.