Enumeration Caseswift-png 4.4.5PNG
v(key:)
A transparency descriptor for a grayscale image.
PNG.Transparency.Case.swift:34case v(key: UInt16)
Parameters
- key
A chroma key used to display transparency. Pixels matching this key will be displayed as transparent, if possible.
Note that the chroma key is an unscaled sample. If the image color depth is less than
16
, only the least-significant bits are inhabited.
Other cases
case palette(alpha: [UInt8])
A transparency descriptor for an indexed image.
case rgb(key: (r: UInt16, g: UInt16, b: UInt16))
A transparency descriptor for an RGB or BGR image.