drawText static method

void drawText(
  1. Image image,
  2. int x,
  3. int y,
  4. String text,
)

draw text on the Image at the x and y position

Implementation

static void drawText(Image image, int x, int y, String text) {
  image.drawString(x, y, text);
}