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
- Alphabetic
- By Inheritance
- Screen
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- Screen → Equals
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val cols: Int
- val data: Array[Byte]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- Screen → Equals → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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
- def get(): Array[Byte]
Returns the entire screen colours data as an array of bytes.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val rows: Int
- 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)
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def validateScreenCoordinates(x: Int, y: Int): Unit
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()