magickNegateImage method

Future<bool> magickNegateImage(
  1. bool gray
)

MagickNegateImage() negates the colors in the reference image. The Grayscale option means that only grayscale values within the image are negated.

You can also reduce the influence of a particular channel with a gamma value of 0.

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

  • gray: If true, only negate grayscale pixels within the image.

Implementation

Future<bool> magickNegateImage(bool gray) async => await _magickCompute(
      _magickNegateImage,
      _MagickNegateImageParams(
        _wandPtr.address,
        gray,
      ),
    );