If I programmatically set the printer dpi to 300 using the new PrinterResolution class, the printout comes out at 1/4 the size! If I manually set the printer resolution to 300 dpi using Properties on the print dialog, the printout looks fine. Just wondering if anyone has run into this problem, or if I am doing something wrong. Couldn't find it on the bug parade.
JDK 1.4.1_02 Windows 2000 Xerox3225 printer Test Case 1. Run ShapesPrint.java (from Sun tutorial). Note size of printout. (The Xerox 3225 defaults to 600 dpi) 2. Run ShapesPrint.java, and manually change the printer resolution to 300 dpi using the printer properties dialog box. As expected, the printout is the same size, and obviously has a lower resolution. 3. Run DPIShapesPrint.java. It has 3 new lines of code that uses the PrinterResolution class to programmatically set dpi to 300. Note that the printout is now 1/4 the size! <<DPIShapesPrint.java>> <<ShapesPrint.java>>
DPIShapesPrint.java
Description: Binary data
ShapesPrint.java
Description: Binary data
