What are the units
of measurement inside the com.lowagie.text.Image class?
For example, the
scaleToFit(w,h) method accepts two float arguments. It it expecting
pixels, points or what? The DvdCover example makes me think this method is
accepting points, not pixels.
The Java docs for
the Image class do not specify the units of measurement. Testing the
class has taught me that some methods -- like width() and height() --
always return pixels. When the scaleToFit(w,h) method is called, is the
image actually rescaled at that moment? The width() and height() remain
the same after calling scaleToFit(w,h), although scaledWidth() and
scaledHeight() do change to .... what? Points, pixels?
The documentation is
not clear on this. Thanks.
David Woosley
Mobile: 479-252-1200
