In this activity we will used the following three images:
We will use an instance of the AffineTransform class to flip the images so that they face in the opposite direction. In fact, here is the critical code in which the flip is accomplished:
You should notice that we first must make an instance of the Graphics2D class before we can do anything of any use with the AffineTransform class. The AffineTransform method only works with the Graphics2D version of the drawImage method.
ASSIGNMENT: