Flip Image Horizontally Code Thingy

Community Forums/Showcase/Flip Image Horizontally Code Thingy

therevills(Posted 2009) [#1]
Ive just been doing some pixel art and drew the character facing right, I didn't want to go thru the processing of copy and flipping each frame individually, so I wrote this piece of code:



Input the width, height and number of frames and it will load your image, flip each frame individually and join the image back together and saves it as filename_copy.png.


jkrankie(Posted 2009) [#2]
what's wrong with scaleimage -1,1, or is it not suitable for your purposes?

Cheers
Charlie


Brucey(Posted 2009) [#3]
what's wrong with scale -1,1

Heh ;-)


therevills(Posted 2009) [#4]
Im just so use of doing this to images, I sometimes forget you can do that with setscale... although in this code I used it.

Also some languages dont have that cool feature...