Re: [JAVA2D] Taking advantage of printer's native resolution

2008-07-21 Thread Jim Graham
A line width of 0 should produce the thinnest line representable on the device. If the line disappears then that is a bug... ...jim [EMAIL PROTECTED] wrote: Since I have not received an answer to my previous question, I will try to simplify it even further. For an

[JAVA2D] Taking advantage of printer's native resolution

2008-07-16 Thread java2d
Since I have not received an answer to my previous question, I will try to simplify it even further. For an arbitrary printer, how can I print a single line that is one printer dot wide by N dots long, ie, print the finest line the printer is capable of printing? For a 300dpi printer this

Re: [JAVA2D] Taking advantage of printer's native resolution

2008-07-16 Thread Phil Race
In the print() method look at the graphics transform and scale down accordingly. Eg if the printer is 360 dpi, then the transform will report a scale of (5,5) so you need to apply a user scale of 1/5, 1/5. Then a 1 pixel user space line will be 1 device pixel. FYI printers that say they