That is really, really confusing. To me. d.
-----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 10:56 AM To: David Woosley; [EMAIL PROTECTED] Cc: [email protected] Subject: RE: [iText-questions] Image units of measurement Without scaling pixels==points. > -----Original Message----- > From: David Woosley [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 17, 2006 4:52 PM > To: Paulo Soares; [EMAIL PROTECTED] > Subject: RE: [iText-questions] Image units of measurement > > Paulo and Bruno: > > Then why does scaledWidth() and scaledHeight() return the > number of PIXELS before the scaleToFit(w,h) method is called? > > David > > > > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 17, 2006 10:01 AM > To: David Woosley; iText Questions (E-mail) > Subject: RE: [iText-questions] Image units of measurement > > > width() and height() are the number of image pixels and can't be > changed. All the other dimensions are points and will change if you > apply scaling. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of David Woosley > > Sent: Tuesday, January 17, 2006 3:43 PM > > To: iText Questions (E-mail) > > Subject: [iText-questions] Image units of measurement > > > > 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 > > > > >
<<attachment: winmail.dat>>
