class HiResSlice extends HiRes
HiRes image slice enables limiting amount of graphic data to a specified part of an original picture.
- Alphabetic
- By Inheritance
- HiResSlice
- HiRes
- Serializable
- Product
- Equals
- CBM
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new HiResSlice(bitmap: Bitmap, screen: Option[Screen], border: Option[Byte], width: Int, height: Int)
create a new
HiResSliceimage datacreate a new
HiResSliceimage data- bitmap
plain hi-resolution bitmap data of an image
- screen
optional screen colours data of an image
- border
optional single byte of image border colour
- width
total width of a slice in number of pixels
- height
total height of a slice in number of pixels
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
- val bitmap: Bitmap
Plain hi-resolution bitmap data of the image.
- val border: Option[Byte]
Optional single byte of image border colour.
- def canEqual(that: Any): Boolean
- Definition Classes
- HiRes → Equals
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val emptyScreen: Array[Byte]
A fallback method returning default screen colour values (1000 bytes filled with 0xbc).
A fallback method returning default screen colour values (1000 bytes filled with 0xbc).
- Definition Classes
- HiRes
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- HiRes → Equals → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val height: Int
An actual pixel height of the image.
An actual pixel height of the image.
- Definition Classes
- HiResSlice → HiRes → CBM
- val heightRounded: Int
Image pixel height rounded up to the bottom margin of an 8x8 character.
- val imageMode: String
An actual image mode.
An actual image mode.
- Definition Classes
- CBM
- def invert(): HiRes
Returns a new HiRes image with all pixels of bitmap data bits inverted.
Returns a new HiRes image with all pixels of bitmap data bits inverted.
- Definition Classes
- HiRes
- 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()
- val numCharCols: Int
An actual char width of this HiRes image.
- val numCharRows: Int
An actual char height of this HiRes image.
- def pixel(x: Int, y: Int): Byte
Returns the C64 colour of the pixel at [x,y].
- def pixelCoordinatesToScreen(x: Int, y: Int): (Int, Int)
Converts given pixel coordinates into screen coordinates.
Converts given pixel coordinates into screen coordinates.
- x
X coordinate of a requested pixel
- y
Y coordinate of a requested pixel
- returns
tuple with a pair of calculated screen coordinates
- Definition Classes
- CBM
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rows: Array[HiResRow]
Returns image data as an array of hires rows (org.c64.attitude.Afterimage.Mode.Data.Row.HiResRow objects).
Returns image data as an array of hires rows (org.c64.attitude.Afterimage.Mode.Data.Row.HiResRow objects).
Note that fetching rows data from an image slice will also always return an array of full rows with 40 columns length each!
- Definition Classes
- HiRes
- val screen: Option[Screen]
- Definition Classes
- HiRes
- def slice(x: Int, y: Int, newWidth: Int, newHeight: Int): HiResSlice
Returns a new HiResSlice instance with truncated contents of the image.
Returns a new HiResSlice instance with truncated contents of the 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
- Definition Classes
- HiRes
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def validate(): Unit
Validates consistency of an object instance data.
Validates consistency of an object instance data.
- Definition Classes
- HiResSlice → HiRes → CBM
- def validatePixelCoordinates(x: Int, y: Int): Unit
Validates whether given pixel coordinates are located within the image.
Validates whether given pixel coordinates are located within the image.
- x
X coordinate of the pixel
- y
Y coordinate of the pixel
- Definition Classes
- CBM
- 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()
- val width: Int
An actual pixel width of the image.
An actual pixel width of the image.
- Definition Classes
- HiResSlice → HiRes → CBM
- val widthRounded: Int
Image pixel width rounded up to the right margin of an 8x8 character.