• Post Reply Bookmark Topic Watch Topic
  • New Topic

resizing for a print problem  RSS feed

 
Maarten Vergouwen
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I'm having trouble finding out how to resize a graphic2D displayed on a panel to print properly on a printer. I use the PrinterJob class to print.
The panel I use is 600 by 600, and I want it resized automatically to fit onto an A4 for example.
How do I go about doing this?
[ January 16, 2004: Message edited by: Maarten Vergouwen ]
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be helpful:
http://www.javaworld.com/javaworld/jw-01-2001/jw-0105-print.html

You may want to post in IO or another forum.
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may could use the AffineTransform and Graphics2D classes to help solve this problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!