org.c64.attitude.Afterimage.Mode.Data

Screen

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, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Screen
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. 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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def canEqual(that: Any): Boolean

    Definition Classes
    Screen → Equals
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val cols: Int

    screen width counted as a number of 8x8 character columns

  11. val data: Array[Byte]

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

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(other: Any): Boolean

    Definition Classes
    Screen → Equals → AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. 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

  16. def get(): Array[Byte]

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

  17. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    Screen → AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def productArity: Int

    Definition Classes
    Screen → Product
  24. def productElement(arg0: Int): Any

    Definition Classes
    Screen → Product
  25. def productIterator: Iterator[Any]

    Definition Classes
    Product
  26. def productPrefix: String

    Definition Classes
    Screen → Product
  27. val rows: Int

    screen height counted as a number of 8x8 character rows

  28. 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)

  29. 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

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    Screen → AnyRef → Any
  32. def validateScreenCoordinates(x: Int, y: Int): Unit

  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any