magickRemapImage method

Future<bool> magickRemapImage({
  1. required MagickWand remapWand,
  2. required DitherMethod ditherMethod,
})

MagickRemapImage() replaces the colors of an image with the closest color from a reference image.

This method runs inside an isolate different from the main isolate.

  • remapWand: the remap wand.
  • ditherMethod: the dither method.

Implementation

Future<bool> magickRemapImage({
  required MagickWand remapWand,
  required DitherMethod ditherMethod,
}) async =>
    await _magickCompute(
      _magickRemapImage,
      _MagickRemapImageParams(
        _wandPtr.address,
        remapWand._wandPtr.address,
        ditherMethod,
      ),
    );