drawAnnotation method
DrawAnnotation() draws text on the image.
x
: x ordinate to left of texty
: y ordinate to text baselinetext
: 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(),
),
);