magickAnnotateImage method

Future<bool> magickAnnotateImage({
  1. required DrawingWand drawingWand,
  2. required double x,
  3. required double y,
  4. required double angle,
  5. required String text,
})

Annotates an image with text. This method runs inside an isolate different from the main isolate.

  • x : x ordinate to left of text.
  • y : y ordinate to text baseline.
  • angle : the text rotation angle.
  • text : the text to draw.

Implementation

Future<bool> magickAnnotateImage({
  required DrawingWand drawingWand,
  required double x,
  required double y,
  required double angle,
  required String text,
}) async =>
    await _magickCompute(
      _magickAnnotateImage,
      _MagickAnnotateImageParams(
        _wandPtr.address,
        drawingWand._wandPtr.address,
        x,
        y,
        angle,
        text,
      ),
    );