imageDrawText function

void imageDrawText(
  1. Image dst,
  2. String text,
  3. int posX,
  4. int posY,
  5. int fontSize,
  6. Color color,
)

Draw text (using default font) within an image (destination).

Implementation

void imageDrawText(
  Image dst,
  String text,
  int posX,
  int posY,
  int fontSize,
  Color color,
) {
  return library.ImageDrawText(
    dst.pointer,
    string.toNative(text),
    posX,
    posY,
    fontSize,
    color.ref,
  );
}