drawAnnotation method

void drawAnnotation({
  1. required double x,
  2. required double y,
  3. required String text,
})

DrawAnnotation() draws text on the image.

  • x : x ordinate to left of text
  • y : y ordinate to text baseline
  • text : text to draw

Implementation

void drawAnnotation({
  required double x,
  required double y,
  required String text,
}) =>
    using(
      (Arena arena) => _magickWandBindings.DrawAnnotation(
        _wandPtr,
        x,
        y,
        text.toNativeUtf8(allocator: arena).cast(),
      ),
    );