How do I take advantage of the full resolution of the printer? When I do a default print using the printer service I seem to get the resolution of the window that I am printing, is there some way of getting the resolution of the printer not that of the display device? I have a Java2D graphics window, and have tried the following with no success:
Graphics2D graphics2D = (Graphics2D) graphics; // Scale the printout to fit the pages. double scalex = format.getImageableWidth() / getWidth(); double scaley = format.getImageableHeight() / getHeight(); double scale = Math.min(scalex, scaley); // translate to the printable (0,0) location on the paper. graphics2D.translate((int) format.getImageableX(), (int) format.getImageableY()); graphics2D.scale(scale, scale); // then paint the graphics 2D object. I still get jagged lines on the printer device. The original window maybe displayed at 600x600. [Message sent by forum member 'diverdad' (diverdad)] http://forums.java.net/jive/thread.jspa?messageID=116274 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".