This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Jython/Python and the fly likes Jython / Python Flipping the top half and bottom half horizontally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Jython / Python Flipping the top half and bottom half horizontally" Watch "Jython / Python Flipping the top half and bottom half horizontally" New topic
Author

Jython / Python Flipping the top half and bottom half horizontally

john calzone
Greenhorn

Joined: Oct 22, 2012
Posts: 1
I'm trying to "cut" a picture in half and flip both sides horizontally. See link below.

http://imgur.com/a/FAksh

1. Original picture
2. What the output needs to be
3. What I'm getting

This is what I have, but all it does is flip the picture horizontally

http://pastebin.com/T1SGedL8)

I'm trying to go from
[1 2]
[3 4]
[5 6]
[7 8]

to

[3 4]
[1 2]
[7 8]
[5 6]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jython / Python Flipping the top half and bottom half horizontally
 
Similar Threads
Overcoming MIDP limitation for Random Number Generation
Balls are not moving
Turning non-transparent jpg into transparent png
Picture Manipulation Methods
Can't find bug in my Rectangle class. Think it might be the fault of my setup.