The printing APIs specify that they use approx 72 dpi default user space.
Graphics2D also specifies that the default user space is approx 72dpi
So they ought to match  .. but I'll bet your screen is more like 90dpi
and you aren't adjusting for that.
So it appears smaller on-screen than on the paper.
So you'll need to make an adjustment using the tranform returned from

java.awt.GraphicsConfiguration.getNormalizingTransform()

But often this is also only a guess since for example Windows
always reports the DPI as 96dpi (VGA resolution) no matter what the
true resolution of your screen device.

-phil.

Michael Seele wrote:
hi all,
i have a problem with printing in java:

i have an application that displays shapes on a A4 page. when i print
it, the shapes has not the same size on the paper as the shapes in the
application! they're bigger on the real A4 paper than on the virtual A4
paper in the application! what's the problem? with which "formula" must
i scale my shapes that their size on the paper are the same(1:1) as
their size on the application paper?

--
Mit freundlichen Gruessen
Michael Seele([EMAIL PROTECTED])

G & H Softwareentwicklung GmbH     Tel.: {+49|0} 7451 - 53 706 0
Robert-Bosch-Str. 23               Fax:  {+49|0} 7451 - 53 706 90
D-72160 Horb a.N.                  http://www.guh-software.de

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