ImageRepresentationFormat

public enum ImageRepresentationFormat

Defines the Image Representation Format that will be used when converting a UIImage to String (via toString()) or to Data (via toData()).

  • Converts the UIImage to a PGN format.

    Declaration

    Swift

    case pngRepresentation
  • Converts the UIImage to a JPG format with the given Image Quality of 0 (lowest) to 100 (highest).

    Declaration

    Swift

    case jpgRepresentation(imageQuality: Int)