So I am trying to create a mirror image that is horizontal. I am having trouble getting the actual image to mirror because I am not sure how to go about doing this. I am using PIL 1.1.6 and Python 2.5.4, if that matters.
So far I have:
def mirrorHorizontal(y):
horiz = y.copy()
width1 = horiz.getWidth()
height1 = horiz.getHeight()
for row in range(height1):
for col in range(width1):
return horiz
I do not know what to do with the rows and columns to get it to mirror in the middle horizontally. Anyone have any suggestions or pointers to get me going in the right direction?
Thanks.