NSBitmapImageRep

Extends NSBitmapImageRep to support the Action Data controls and adds convenience methods for working with image properties in a Codable, Encodable or Decodable class.

  • Returns the bitmap as data in the png format.

    Declaration

    Swift

    public var pngData: Data?
  • Returns the bitmap as data in the jpeg format.

    Declaration

    Swift

    public var jpgData: Data?