magickFxImage method

Future<MagickWand?> magickFxImage(
  1. String expression
)

Evaluate expression for each pixel in the image.

Don't forget to call destroyMagickWand on the returned MagickWand when done.

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

  • expression: the expression.

Implementation

Future<MagickWand?> magickFxImage(String expression) async =>
    MagickWand._fromAddress(
      await _magickCompute(
        _magickFxImage,
        _MagickFxImageParams(
          _wandPtr.address,
          expression,
        ),
      ),
    );