magickColorizeImage method

Future<bool> magickColorizeImage({
  1. required PixelWand colorize,
  2. required PixelWand blend,
})

Blends the fill color with each pixel in the image.

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

  • colorize : the colorize pixel wand.
  • blend : the alpha pixel wand.

Implementation

Future<bool> magickColorizeImage(
        {required PixelWand colorize, required PixelWand blend}) async =>
    await _magickCompute(
      _magickColorizeImage,
      _MagickColorizeImageParams(
        _wandPtr.address,
        colorize._wandPtr.address,
        blend._wandPtr.address,
      ),
    );