In this method you should create a new image whose pixel positions are flipped across an imaginary vertical centered line through the image.
For example, the diagram below shows a source image of size 6×4 flipped horizontally to create a result image of size 6×4; the pixels are indicated by letters just for illustration. Note that the source image’s width may be different from its height, and that the dimensions of the result image should always be the same as the source image. Additionally, flipping an image horizontally twice should return it to its original form.