Gimp.Drawable.prototype.posterize

function posterize(levels: Number(gint)): Boolean {
    // Gjs wrapper for gimp_drawable_posterize()
}
  

Posterize the specified drawable.

This procedures reduces the number of shades allows in each intensity channel to the specified 'levels' parameter.

Since 2.10

levels

Levels of posterization.

Returns

TRUE on success.