magickShadowImage method

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

MagickShadowImage() simulates an image shadow.

  • alpha: percentage transparency.
  • sigma: the standard deviation of the Gaussian, in pixels.
  • x: the shadow x-offset.
  • y: the shadow y-offset.

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

Implementation

Future<bool> magickShadowImage({
  required double alpha,
  required double sigma,
  required int x,
  required int y,
}) async =>
    await _magickCompute(
      _magickShadowImage,
      _MagickShadowImageParams(
        _wandPtr.address,
        alpha,
        sigma,
        x,
        y,
      ),
    );