magickFunctionImage method

Future<bool> magickFunctionImage({
  1. required MagickFunctionType function,
  2. required Float64List arguments,
})

Applies an arithmetic, relational, or logical expression to an image. Use these operators to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.

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

  • function: the image function.
  • arguments: the function arguments.

Implementation

Future<bool> magickFunctionImage({
  required MagickFunctionType function,
  required Float64List arguments,
}) async =>
    await _magickCompute(
      _magickFunctionImage,
      _MagickFunctionImageParams(
        _wandPtr.address,
        function,
        arguments,
      ),
    );