Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27932
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Mirror an image |
| Date | 2014-04-01 11:15 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lhelb6$vgu$1@dont-email.me> (permalink) |
| References | <2299213c-18fc-4e55-ab39-22dce863b255@googlegroups.com> <lhel09$sqv$1@dont-email.me> |
On 04/01/2014 11:09 AM, Jeff Higgins wrote: > 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. > > See the 2D Graphics trail in the Java Tutorials. Specifically: <http://docs.oracle.com/javase/tutorial/2d/advanced/transforming.html>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Mirror an image pgmbento93@gmail.com - 2014-04-01 07:44 -0700
Re: Mirror an image Jeff Higgins <jeff@invalid.invalid> - 2014-04-01 11:09 -0400
Re: Mirror an image Jeff Higgins <jeff@invalid.invalid> - 2014-04-01 11:15 -0400
Re: Mirror an image Roedy Green <see_website@mindprod.com.invalid> - 2014-04-01 11:56 -0700
Re: Mirror an image Wanja Gayk <brixomatic@yahoo.com> - 2014-04-06 20:18 +0200
Re: Mirror an image Jeff Higgins <jeff@invalid.invalid> - 2014-04-06 18:01 -0400
Re: Mirror an image Wanja Gayk <brixomatic@yahoo.com> - 2014-04-13 15:57 +0200
Re: Mirror an image Jeff Higgins <jeff@invalid.invalid> - 2014-04-13 10:21 -0400
csiph-web