• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing an Image at a specified size  RSS feed

 
Richard Quist
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm using the Java Print Service (JPS) API and am wrestling with how to print an image at a specific output size. Say for example that I have a BufferedImage that has a width of 500 pixels and a height of 300 pixels, and I want to print this at 100 DPI so that the output is 5 inches by 3 inches. Is there some setting (or group of settings) in the PageFormat, PrinterJob and/or PrintService classes that will allow me to accomplish this?

Thanks in advance,
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!