Mirroring Isometric image

Well I’m currently developing an isometric game and as the title says I want to find out how to mirror the front and back image to the right and left without creating entirely new images. I’ve tried looking online for ways to do this but it was futile. I tried using the scale method and the AffineTransform way but it resulted in nothing being painted.

If you still don’t understand what I’m trying to do… look at the image below.

I’m trying to turn the image to the right using code.

and here is segment of how my player is drawn:


 else if(dir == 1)//down
         {
              sprite = ss.grabImage(100,100,1,1,100,100);
              Graphics2D g2 = (Graphics2D) g;
              g2.drawImage(sprite,sprite_x,sprite_y,panel);
              g2.drawString(name,sprite_x+28,sprite_y+5);
         }
         else if(dir == 2)//right
         {
            
         }

Please help and thank you!