PngBits

public enum PngBits

Quality options for PNG images to be used when specifying .png as the desired image format. Example usage

let imageOptions = [.formatAs(.png(bits: .standard))]
  • Specify that the PNG should be represented with standard bit-depth.

    Declaration

    Swift

    case standard
  • Specify that the PNG should be represented with only 8 bits.

    Declaration

    Swift

    case eight