Packages

case class Screen(data: Array[Byte], cols: Int, rows: Int) extends Product with Serializable

Screen colours data of an image.

data

an array of bytes (must equal "cols * rows" result)

cols

screen width counted as a number of 8x8 character columns

rows

screen height counted as a number of 8x8 character rows

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Screen
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Screen(data: Array[Byte], cols: Int, rows: Int)

    create a new screen data

    create a new screen data

    data

    an array of bytes (must equal "cols * rows" result)

    cols

    screen width counted as a number of 8x8 character columns

    rows

    screen height counted as a number of 8x8 character rows

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(x: Int, y: Int): Byte

    Returns screen colour at a given position.

    Returns screen colour at a given position.

    x

    X coordinate of the screen colour

    y

    Y coordinate of the screen colour

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def canEqual(that: Any): Boolean
    Definition Classes
    Screen → Equals
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val cols: Int
  9. val data: Array[Byte]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean
    Definition Classes
    Screen → Equals → AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def get(x: Int, y: Int): Byte

    Returns screen colour at a given position.

    Returns screen colour at a given position.

    x

    X coordinate of the screen colour

    y

    Y coordinate of the screen colour

  14. def get(): Array[Byte]

    Returns the entire screen colours data as an array of bytes.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. val rows: Int
  22. def shift(dx: Int, dy: Int, fill: Byte = 0x00): Screen

    Returns the new screen colours data composed from the original image with a shifted content.

    Returns the new screen colours data composed from the original image with a shifted content.

    dx

    value of horizontal data shift (positive for shifting to the right, and negative for shifting to the left)

    dy

    value of vertical data shift (positive for shifting to the bottom, and negative for shifting to the top)

    fill

    optional fill value of newly created empty bytes (defaults to 0x00)

  23. def slice(x: Int, y: Int, newWidth: Int, newHeight: Int): Screen

    Returns the new screen colours data composed from cutting out a slice of the original image.

    Returns the new screen colours data composed from cutting out a slice of the original image.

    x

    X coordinate of the top-left corner of a rectangular selection area

    y

    Y coordinate of the top-left corner of a rectangular selection area

    newWidth

    total width of a rectangular selection area as a number of 8x8 character columns

    newHeight

    total height of a rectangular selection area as a number of 8x8 character columns

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def validateScreenCoordinates(x: Int, y: Int): Unit
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped