magickOilPaintImage method

Future<bool> magickOilPaintImage({
  1. required double radius,
  2. required double sigma,
})

MagickOilPaintImage() applies a special effect filter that simulates an oil painting. Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.

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

  • radius: the radius of the circular neighborhood.
  • sigma: the standard deviation of the Gaussian, in pixels.

Implementation

Future<bool> magickOilPaintImage({
  required double radius,
  required double sigma,
}) async =>
    await _magickCompute(
      _magickOilPaintImage,
      _MagickOilPaintImageParams(
        _wandPtr.address,
        radius,
        sigma,
      ),
    );