Packages

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. Bitmap
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
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: 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canEqual(that: Any): Boolean
    Definition Classes
    Bitmap → Equals
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val cols: Int
  8. val data: Array[Byte]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean
    Definition Classes
    Bitmap → Equals → AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(): Array[Byte]

    Returns the entire bitmap data as an array of bytes.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. 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

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. 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

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. val rows: Int
  21. 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)

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

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped