create a new HiResSlice image data
create a new HiResSlice image data
plain hi-resolution bitmap data of an image
optional screen colours data of an image
optional single byte of image border colour
total width of a slice in number of pixels
total height of a slice in number of pixels
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).
total height of a slice in number of pixels
total height of a slice in number of pixels
Image pixel height rounded up to the bottom margin of an 8x8 character.
An actual image mode.
An actual image mode.
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.
An actual char width of this HiRes image.
An actual char height of this HiRes image.
Returns the C64 colour of the pixel at [x,y].
Converts given pixel coordinates into screen coordinates.
Converts given pixel coordinates into screen coordinates.
X coordinate of a requested pixel
Y coordinate of a requested pixel
tuple with a pair of calculated screen coordinates
Returns image data as an array of hires rows (org.c64.attitude.Afterimage.Mode.Data.HiResRow objects).
Returns image data as an array of hires rows (org.c64.attitude.Afterimage.Mode.Data.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!
Returns a new HiResSlice instance with truncated contents of the image.
Returns a new HiResSlice instance with truncated contents of the image.
X coordinate of the top-left corner of a rectangular selection area
Y coordinate of the top-left corner of a rectangular selection area
total width of a rectangular selection area in number of pixels
total height of a rectangular selection area in number of pixels
Validates consistency of an object instance data.
Validates consistency of an object instance data.
Validates whether given pixel coordinates are located within the image.
Validates whether given pixel coordinates are located within the image.
X coordinate of the pixel
Y coordinate of the pixel
total width of a slice in number of pixels
total width of a slice in number of pixels
Image pixel width rounded up to the right margin of an 8x8 character.
HiRes image slice enables limiting amount of graphic data to a specified part of an original picture.