• Post Reply Bookmark Topic Watch Topic
  • New Topic

Print a string in a image  RSS feed

 
Gustavo Cavalcanti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy guys,
I wanna print a string (this string can change) in a existent image (GIF, JPEG, PNG, etc..). For example, imagine that I have a picture from a client and I wanna put the client's name in picture's footer.
Well, I apreciate the help!
Thanks
See ya
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Gustavo.
It's easy to manipulate images. Read it in with javax.imageio.ImageIO. Use the getGraphics() method to obtain a java.awt.Graphics instance. Use the various methods of Graphics to manipulate the image, then write it out again using ImageIO.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!