Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
Picture Manipulation Methods
Balls are not moving
Overcoming MIDP limitation for Random Number Generation
Turning non-transparent jpg into transparent png
Can't find bug in my Rectangle class. Think it might be the fault of my setup.