3 Replies Latest reply: Jul 12, 2011 1:30 AM by StanislavL RSS

    Coordinate Units in User Space for Java 2D

      According to the Java 2D documentation, from several sources, User Space defines one inch as 72 coordinate units. So, if I draw a rectangle using Java 2D that is 144 units wide and 72 units tall, and I execute this program, I should see a rectangle on my screen that is 2 inches wide and 1 inch tall. Not the case. The rectangle measures about 5/8 inch tall. So the scaling from User Space to Device Space does not seem to be correct. I should not have to take my screen resolution into account. So what is going on? Thanks.