Edward Nunez
,
Ranch Hand
Feb 06, 2014 21:01:06
What's a simple way to flip an Image along the vertical or horizontal? I've searched high and low and surprised to find that I can't find something short and compact.
Thanks,
Edward.
Jhonson Fernando
,
MyExamCloud Software Support
Feb 06, 2014 22:23:06
Use trigonometry to determine the correct width/height, using transparency to prevent the black area.
Edward Nunez
,
Ranch Hand
Feb 07, 2014 10:18:19
Thanks Koilraj but I think you may have misinterpreted the question. I was looking for a way to mirror an image.
Ishan Verma
,
Greenhorn
Feb 11, 2014 03:32:43
Hi,
Following code contains a function that will take a BufferedImage and return a BufferedImage that is horizontally flipped:
If you are looking at vertically flipping an image, checkout the snippet below:
Hope this helps.
Rob Camick
,
Rancher
Feb 11, 2014 09:01:24
Here is some old code I found on the web a long time ago. It works for an Icon. It should also work for an image but I have never tested it:
Hey! Wanna see my flashlight? It looks like this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders