0

if I remove this line (*a = temp2) the left image only reflects and if I remove this line (*b = temp ) the right image only reflects but if I write both the image return into the original one no reflect.

if I remove this line (*a = temp2)

if I remove this line (*b = temp )

this is my code

4

If you swap the first pixel with the last, and then the last with the first, you are reflecting twice.

Make your horizontal loop run width / 2 times instead of width.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .