views:

163

answers:

4

Is there a Java library to write text to images, same as PHP's GD library.

+4  A: 

Sure. First load the image, probably using a method of ImageIO. Then, using a Graphics object representing the image itself, call the drawString method.

Etaoin
+1  A: 

yes, java.awt.*

Here's one example; there are hundreds out there.

Bozho
+1  A: 

Take a look at Graphics2D.drawString

Joshua Fox
+1  A: 

Here's is yet another example.

trashgod
just what i was looking for!
n002213f