magickPosterizeImage method
MagickPosterizeImage() reduces the image to a limited number of color level.
This method runs inside an isolate different from the main isolate.
levels
: Number of color levels allowed in each channel. Very low values (2, 3, or 4) have the most visible effect.method
: chooses the dither method.
Implementation
Future<bool> magickPosterizeImage({
required int levels,
required DitherMethod method,
}) async =>
await _magickCompute(
_magickPosterizeImage,
_MagickPosterizeImageParams(
_wandPtr.address,
levels,
method,
),
);