dither

fun dither(bpp: Int): Image

Dithers the image to the specified bits per pixel for all color channels.

Return

A new Image object that is dithered.

Parameters

bpp

Bits per pixel for all color channels.


fun dither(rbpp: Int, gbpp: Int, bbpp: Int, abpp: Int): Image

Dithers the image to the specified bits per pixel for each color channel.

Return

A new Image object that is dithered.

Parameters

rbpp

Red bits per pixel.

gbpp

Green bits per pixel.

bbpp

Blue bits per pixel.

abpp

Alpha bits per pixel.