Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Mirror an image Date: Tue, 01 Apr 2014 11:09:57 -0400 Organization: A noiseless patient Spider Lines: 8 Message-ID: References: <2299213c-18fc-4e55-ab39-22dce863b255@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 1 Apr 2014 15:12:10 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="29535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/r7B20FAkE0XsTho6ZBxUxmI05DanBUGU=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 In-Reply-To: <2299213c-18fc-4e55-ab39-22dce863b255@googlegroups.com> Cancel-Lock: sha1:QgspiOvjt5yK+A4VWksiPnIN2ms= Xref: csiph.com comp.lang.java.programmer:27931 On 04/01/2014 10:44 AM, pgmbento93@gmail.com wrote: > hi, i was confronted with this problem. i was given a code where i have to mirror an image at the middle. so the image needs to be divided and then i have to mirror the image. this is the code: Use BufferedImage.createGraphics() and then Graphics2D.scale(x,y) to flip the image. No need for the getRGB loop.