set_dither_enabled


Description:

public void set_dither_enabled (Bool dither_enabled)

Enables or disabled dithering if supported by the hardware.

Dithering is a hardware dependent technique to increase the visible color resolution beyond what the underlying hardware supports by playing tricks with the colors placed into the framebuffer to give the illusion of other colors. (For example this can be compared to half-toning used by some news papers to show varying levels of grey even though their may only be black and white are available).

If the current display pipeline for this does not support dithering then this has no affect.

Dithering is enabled by default.

Parameters:

this

a pointer to a Framebuffer

dither_enabled

true to enable dithering or false to disable