Write a c++ code to vertically mirror an image.

You might be able to find some relevant information on somewhere like Stack Overflow.