• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to merge user entered text with a jpeg and print it out at 300 dpi?  RSS feed

 
Matt Wilcko
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to merge user entered text with a jpeg and print it out at 300 dpi?
Basically I am working on a program where a user selects an advertisment and then customizes it by entering their information(name, adderess, phone). Is there any way I can have text added to a 300 dpi jpeg and then print that out at 300 dpi to the users printer?
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't help you with the particulars of printing at a certain DPI (Java Printing), however, I do know you can take a JPanel, get it's Graphics object (p.getGraphics), draw an image on it (g.drawImage) and then overwrite that image with text(g.drawString) and print that out.
[ September 25, 2003: Message edited by: Joe Ess ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!