DisplayPNGCharacteristicsDescriptor

public struct DisplayPNGCharacteristicsDescriptor : Equatable, Codable

The DisplayPNGCharacteristicsDescriptor describes a PNG image characteristics as defined in the PNG spec for IHDR (image header) and PLTE (palette table).

  • The image width.

    Declaration

    Swift

    public let width: UInt32
  • The image height.

    Declaration

    Swift

    public let height: UInt32
  • The bit depth, i.e. bits per sample or per palette index.

    Declaration

    Swift

    public let bitDepth: UInt8
  • The color type defines the PNG image type.

    Declaration

    Swift

    public let colorType: UInt8
  • The compression method used to compress the image data.

    Declaration

    Swift

    public let compression: UInt8
  • The filter method is the preprocessing method applied to the image data before compression.

    Declaration

    Swift

    public let filter: UInt8
  • The interlace method is the transmission order of the image data.

    Declaration

    Swift

    public let interlace: Int
  • A list of 1 to 256 palette entries.

    Declaration

    Swift

    public let plte: [RGBPaletteEntry]