Image

class Image

A view that displays an environment-dependent image.

  • property documentation (update this)

    Declaration

    var name: String { get }
  • property documentation (update this)

    Declaration

    var size: Size { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Image) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.

  • Returns the bitmap of a PNG image.

    Uses NSBitmapImageRep to generate a bitmap of a PNG image.

    Declaration

    func serializeAsPNGData() -> Data?

    Return Value

    The bitmap of a PNG.

  • Returns a base64Encoded string of an image.

    Declaration

    func base64Encoded() -> String?

    Return Value

    A base64Encoded string of an image.