Image.posterize

Reduces the image to a limited number of colors for a "poster" effect.

class Image
void
posterize
(
size_t levels = 4
,
bool dither = false
)

Parameters

levels size_t

Number of color levels allowed in each channel. Very low values (2, 3, or 4) have the most visible effect.

dither bool

If true, dither the image.

Meta