Inverting images

We would like help on flipping the image for our camera. We are using java to program and are going to have a camera which is hidden and then have a mirror that would flip so that we can see forward and backwards on the robot. Does anyone have any ideas how we would go about doing this on java?