Clarifying Points vs. Pixels

It's my understanding that Java 2D works in device independent units, specifically points. Are there still parts of AWT/Swing that work in pixels?

More specifically we're trying to understand what happens when you draw and image, for exampleg2d.drawImage(i, x, y, w, h)

If w & h are each 16, presumably this means points and not pixels?

Some image file formats store the image size in device independent units. Does Java2D respect this, or does it only focus on the "pixel" dimensions of the image?

Is there somewhere where this is clearly defined?

Cheers, Eric

[604 byte] By [Eric-the-Ka] at [2007-11-27 10:07:24]
# 1

Well, there's only 72 points per inch, and some monitors may show more pixels per inch than that.

Yes, w & h and x & y are pixels, not points. I would suspect that if an image had only physical size definitions (inches, points) Java would treat them as 72 pixels per inch. Or take from the OS, which on Windows is typically 96 pixels per inch.

bsampieria at 2007-7-13 0:43:42 > top of Java-index,Desktop,Core GUI APIs...