Skip to content

Screen ​

python
Screen(screen: DotNetZXSpectrumScreen)

Provides display settings and screenshots as NumPy arrays.

Source

Properties ​

border ​

python
border: ZXColour

The current border colour.

Source

renders_border ​

python
renders_border: bool

Whether this screen implementation includes the border.

Source

renders_flash ​

python
renders_flash: bool

Whether this screen implementation renders flashing attributes.

Source

type ​

python
type: ScreenType

The selected screen implementation.

Source

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.

Source

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.

Source