magickSwirlImage method

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

MagickSwirlImage() swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.

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

  • degrees: Define the tightness of the swirling effect.
  • method: the pixel interpolation method.

Implementation

Future<bool> magickSwirlImage({
  required double degrees,
  required PixelInterpolateMethod method,
}) async =>
    await _magickCompute(
      _magickSwirlImage,
      _MagickSwirlImageParams(
        _wandPtr.address,
        degrees,
        method,
      ),
    );