magickPolaroidImage method

Future<bool> magickPolaroidImage({
  1. required DrawingWand drawingWand,
  2. required String caption,
  3. required double angle,
  4. required PixelInterpolateMethod method,
})

MagickPolaroidImage() simulates a Polaroid picture.

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

  • drawingWand: the draw wand.
  • caption: the Polaroid caption.
  • angle: Apply the effect along this angle.
  • method: the pixel interpolation method.

Implementation

Future<bool> magickPolaroidImage({
  required DrawingWand drawingWand,
  required String caption,
  required double angle,
  required PixelInterpolateMethod method,
}) async =>
    await _magickCompute(
      _magickPolaroidImage,
      _MagickPolaroidImageParams(
        _wandPtr.address,
        drawingWand._wandPtr.address,
        caption,
        angle,
        method,
      ),
    );