magickTintImage method

Future<bool> magickTintImage({
  1. required PixelWand tint,
  2. required PixelWand blend,
})

MagickTintImage() applies a color vector to each pixel in the image. The length of the vector is 0 for black and white and at its maximum for the midtones. The vector weighting function is f(x)=(1-(4.0*((x-0.5)*(x-0.5)))).

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

  • tint: the tint pixel wand.
  • blend: the blend pixel wand.

Implementation

Future<bool> magickTintImage({
  required PixelWand tint,
  required PixelWand blend,
}) async =>
    await _magickCompute(
      _magickTintImage,
      _MagickTintImageParams(
        _wandPtr.address,
        tint._wandPtr.address,
        blend._wandPtr.address,
      ),
    );