magickSpreadImage method

Future<bool> magickSpreadImage({
  1. required PixelInterpolateMethod method,
  2. required double radius,
})

MagickSpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.

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

  • method: interpolation method.
  • radius: Choose a random pixel in a neighborhood of this extent.

Implementation

Future<bool> magickSpreadImage({
  required PixelInterpolateMethod method,
  required double radius,
}) async =>
    await _magickCompute(
      _magickSpreadImage,
      _MagickSpreadImageParams(
        _wandPtr.address,
        method,
        radius,
      ),
    );