magickVignetteImage method

Future<bool> magickVignetteImage({
  1. required double radius,
  2. required double sigma,
  3. required int x,
  4. required int y,
})

MagickVignetteImage() softens the edges of the image in vignette style.

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

  • radius: the radius.
  • sigma: the sigma.
  • x: Define the x ellipse offset.
  • y: Define the y ellipse offset.

Implementation

Future<bool> magickVignetteImage({
  required double radius,
  required double sigma,
  required int x,
  required int y,
}) async =>
    await _magickCompute(
      _magickVignetteImage,
      _MagickVignetteImageParams(
        _wandPtr.address,
        radius,
        sigma,
        x,
        y,
      ),
    );