Structureswift-png 4.4.5PNG
Chunk
A chunk type identifier.
PNG.Chunk.swift:5PNG.Chunk.mdstruct Chunk
Critical chunks
static let CgBI: `Self`
The
CgBI
chunk type.static let IHDR: `Self`
The
IHDR
chunk type.static let PLTE: `Self`
The
PLTE
chunk type.static let IDAT: `Self`
The
IDAT
chunk type.static let IEND: `Self`
The
IEND
chunk type.
Important ancillary chunks
static let tRNS: `Self`
The
tRNS
chunk type.static let bKGD: `Self`
The
bKGD
chunk type.
Other ancillary chunks
static let cHRM: `Self`
The
cHRM
chunk type.static let gAMA: `Self`
The
gAMA
chunk type.static let hIST: `Self`
The
hIST
chunk type.static let iCCP: `Self`
The
iCCP
chunk type.static let iTXt: `Self`
The
iTXt
chunk type.static let pHYs: `Self`
The
pHYs
chunk type.static let sRGB: `Self`
The
sRGB
chunk type.static let sBIT: `Self`
The
sBIT
chunk type.static let sPLT: `Self`
The
sPLT
chunk type.static let tIME: `Self`
The
tIME
chunk type.static let tEXt: `Self`
The
tEXt
chunk type.static let zTXt: `Self`
The
zTXt
chunk type.
See also
struct Context
A decoding context.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (50) members.
Protocols
protocol BytestreamDestination
A destination bytestream.
protocol BytestreamSource
A source bytestream.
protocol Color<Aggregate>
A color target.
protocol Error
Functionality common to all library error types.
Types
struct Background
A background descriptor.
struct Chromaticity
A chromaticity descriptor.
struct ColorProfile
An embedded color profile.
enum ColorRendering
A color rendering mode.
enum DecodingError
A decoding error.
enum Format
A color format.
enum FormattingError
A formatting error.
struct Gamma
A gamma descriptor.
struct Header
An image header.
struct Histogram
A palette frequency histogram.
struct Image
A rectangular image.
struct Layout
An image layout.
enum LexingError
A lexing error.
struct Metadata
The metadata in a PNG image.
struct Palette
An image palette.
enum ParsingError
A parsing error.
struct Percentmille
A rational percentmille value.
struct PhysicalDimensions
A physical dimensions descriptor.
struct RGBA<T>
An RGBA color target.
struct SignificantBits
A color precision descriptor.
enum Standard
A PNG standard.
struct SuggestedPalette
A suggested image palette.
struct Text
A text comment.
struct TimeModified
An image modification time.
struct Transparency
A transparency descriptor.
struct VA<T>
A grayscale-alpha color target.
Show obsolete interfaces (2)
Hide obsolete interfaces
enum Bytestream
A namespace for bytestream utilities.
enum Data
A namespace containing the
Image
type.
Type members
static func convolve<A, T, C>([UInt8], dereference: (Int) -> A, kernel: (T) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A), kernel: ((T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A, A), kernel: ((T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A, A, A), kernel: ((T, T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T, T), (A, A, A)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: (T, A) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> T
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], reference: (A) -> Int, kernel: (C) -> T
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A)) -> Int, kernel: (C) -> (T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A, A)) -> Int, kernel: (C) -> (T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A, A, A)) -> Int, kernel: (C) -> (T, T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func premultiply<T>(T, alpha: T
) -> T Premultiplies a color component with an alpha value.
static func straighten<T>(T, alpha: T
) -> T Straightens a premultiplied color component given an alpha value.
Citizens in PNG
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Type members
init(name: UInt32
) Creates a chunk type identifier.
init?(validating: UInt32
) Creates a chunk type identifier, returning
nil
if the type code is invalid.
Instance members
var description: String
A string displaying the ASCII representation of this chunk type identifier.
let name: UInt32
The chunk type code.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.