4142434445464748495051
public void rotate(int rotateAmount) { if (rotateAmount == 0) { return; } Flip flip = null; switch (rotateAmount) { case 90: flip = Flip.CLOCKWISE_90_DEGREES; break; case 180: