Same here. I ran it and it looked fine on an HP 5000 PCL printer.
FYI: 2D printing will use the GDI ExtCreatePen function to create a pen of the
specified width, and then use GDI's LineTo function.
So any variation seen may point to a problem in the printer driver.
The mapping of the line position to device coordinates may not always fall
exactly on a device pixel, but should never be off by more than one device
pixel, so if you can spot this at even a low printer res of 300 dpi then
your eyes must be more acute than mine. You'd much more likely notice
this on the screen than on the printer.

-phil.


[email protected] wrote:
I ran your test, but didn't notice any inaccuracies.

What I did notice however: the left vertical line and the top horizontal line 
are drawn exactly on the edge of the imagable area. Because of that, those 
lines are for one half outside the imagable area and thus thinner. I'm not 
sure, but maybe an optical effect of that may lead you to think that the lines 
are not layed out properly. (For my old eyes the lines seem to dance near the 
top and left border).

I changed the translate in your code to get rid of those half lines and then 
the output looks completely satisfactory for me.

[code]g2.translate(format.getImageableX() + 1, format.getImageableY() + 
1);[/code]

Piet
[Message sent by forum member 'pietblok' (pietblok)]

http://forums.java.net/jive/thread.jspa?messageID=323701

===========================================================================
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".

===========================================================================
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".

Reply via email to