ImageRepresentationFormat
public enum ImageRepresentationFormat
Defines the Image Representation Format that will be used when converting a NSImage
to String
(via toString()
) or to Data
(via toData()
).
-
Converts the
NSImage
to a PGN format.Declaration
Swift
case pngRepresentation
-
Converts the
NSImage
to a JPG format with the given Image Quality of0
(lowest) to100
(highest).Declaration
Swift
case jpgRepresentation(imageQuality: Int)