-none- 2007-08-23 - By William Alexander Segraves
Back -- -- Original Message -- -- From: "Paulo Soares" <psoares@(protected)> To: "Post all your questions about iText here" <itext-questions@(protected)> Sent: Thursday, 23 August, 2007 6:45 AM Subject: Re: [iText-questions] image- how to maintain ratio
> scaletofit keeps the same ratio, scaleabsolute doesn't. > > Paulo
scaleAbsolute doesn't keep the same ratio, except when it does ... ;-)
e.g.,
img.scaleAbsolute(SF*imgWidth,SF*imgHeight);
where SF = Scale Factor
certainly preserves the subject ratio, provided imgWidth and imgHeight are the dimensions of the image.
-- Bill Segraves
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|