If you want to flip a selection in Photoshop, there are a few different ways to go about it. The easiest way is to use the Quick Selection tool and click and drag on the selection. You can also use the Magnetic Lasso tool to make a selection, or use the Pen tool to make a freehand selection. ..
Check out How To Flatten Image In Illustrator?