org.c64.attitude.Afterimage.Mode.Data

Bitmap

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

Plain hi-resolution bitmap data of an image.

data

an array of bytes

cols

bitmap width counted as a number of 8x8 character columns

rows

bitmap 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. Bitmap
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

    create a new bitmap data

    create a new bitmap data

    data

    an array of bytes

    cols

    bitmap width counted as a number of 8x8 character columns

    rows

    bitmap 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. final def asInstanceOf[T0]: T0

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

    Definition Classes
    Bitmap → Equals
  8. def clone(): AnyRef

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

    bitmap width counted as a number of 8x8 character columns

  10. val data: Array[Byte]

    an array of bytes

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

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

    Definition Classes
    Bitmap → Equals → AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def get(): Array[Byte]

    Returns the entire bitmap data as an array of bytes.

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

    Definition Classes
    AnyRef → Any
  16. def getPixels(x: Int, y: Int, numBits: Int): Byte

    Returns an indicated number of pixel values starting at a given position.

    Returns an indicated number of pixel values starting at a given position.

    x

    X coordinate of the first pixel

    y

    Y coordinate of the first pixel

    numBits

    number of up to 8 subsequent pixels to test, which are located on the samy Y line

  17. def hashCode(): Int

    Definition Classes
    Bitmap → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isPixelSet(x: Int, y: Int): Boolean

    Returns a boolean flag indicating if a pixel at a given position is set or not.

    Returns a boolean flag indicating if a pixel at a given position is set or not.

    x

    X coordinate of the pixel

    y

    Y coordinate of the pixel

  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
    Bitmap → Product
  24. def productElement(arg0: Int): Any

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

    Definition Classes
    Product
  26. def productPrefix: String

    Definition Classes
    Bitmap → Product
  27. val rows: Int

    bitmap height counted as a number of 8x8 character rows

  28. def shift(x: Int, y: Int, fill: Boolean = false): Bitmap

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

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

    x

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

    y

    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 bits (defaults to a cleared bit)

  29. def slice(x: Int, y: Int, newWidth: Int, newHeight: Int): Bitmap

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

    Returns the new bitmap 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 in number of pixels

    newHeight

    total height of a rectangular selection area in number of pixels

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

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    Bitmap → AnyRef → Any
  32. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. 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