enableDithering property Null safety

bool enableDithering
read / write

Whether to dither the output when drawing images.

If false, the default value, dithering will be enabled when the input color depth is higher than the output color depth. For example, drawing an RGB8 image onto an RGB565 canvas.

This value also controls dithering of shaders, which can make gradients appear smoother.

Whether or not dithering affects the output is implementation defined. Some implementations may choose to ignore this completely, if they're unable to control dithering.

To ensure that dithering is consistently enabled for your entire application, set this to true before invoking any drawing related code.

Implementation

static bool enableDithering = false;