Screen
python
Screen(screen: DotNetZXSpectrumScreen)Provides display settings and screenshots as NumPy arrays.
Properties
border
python
border: ZXColourThe current border colour.
renders_border
python
renders_border: boolWhether this screen implementation includes the border.
renders_flash
python
renders_flash: boolWhether this screen implementation renders flashing attributes.
type
python
type: ScreenTypeThe selected screen implementation.
Methods
get_pixel_colour_screenshot
python
get_pixel_colour_screenshot() -> np.ndarray[typing.Any, np.dtype[np.uint8]]Return a copy of the displayed image as a NumPy array of palette indexes.
The shape is (height, width), with rows first.
get_rgb_screenshot
python
get_rgb_screenshot() -> np.ndarray[typing.Any, np.dtype[np.uint8]]Return a copy of the displayed image as a NumPy RGB array.
The shape is (height, width, 3). Each colour channel is an unsigned byte.