Skip to main content

Module screen

Module screen 

Source
Expand description

Halftone threshold screen for Mono1 (1-bit) output.

Mirrors SplashScreen from splash/SplashScreen.h/.cc.

The screen is a power-of-2 tiled threshold matrix. A pixel with value v is set to white (1) when v >= mat[y % size][x % size], and black (0) otherwise. The matrix is built lazily on first test() call.

Three matrix types:

  • Dispersed (Bayer-style): even dot distribution, low correlation.
  • Clustered: traditional clustered dot, good for offset printing.
  • StochasticClustered: randomized large-dot screen at ≥ 300 dpi.

Structs§

HalftoneScreen
A halftone threshold screen.