Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.help Subject: Re: Work around requested Date: Tue, 20 Dec 2011 20:13:46 -0500 Organization: The Wasteland Lines: 23 Message-ID: References: <17844998.127.1324178380897.JavaMail.geo-discussion-forums@pril5> <4decc207-ebaa-4d1c-9952-b73f18817f08@k10g2000yqk.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1462 In article <4decc207-ebaa-4d1c-9952-b73f18817f08@k10g2000yqk.googlegroups.com>, bH wrote: > I compared the output using one large image > 1600 x 1200 pixels cropped to 200 x 150 in both > programs, first program uses: > com.sun.image.codec.jpeg.JPEGCodec > and the second program with the revision as suggested > above by John Matthews: > uses the classes javax.imageio.ImageIO and > java.awt.image.AffineTransformOp. > > The comparison result is that the suggested > revision by John Matthews comes in second place. > It does do crop it, but is less perfect of a > crop than the first method listed. > For instance in the second program, > the image is not as sharp and clear. Kudos for comparing. What interpolationType did you use?