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
- Alphabetic
- By Inheritance
- Bitmap
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- Bitmap → 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
- Bitmap → Equals → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(): Array[Byte]
Returns the entire bitmap data as an array of bytes.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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(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)
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()