2013-04-28 75 views

回答

1
Graphics2D g2d=(Graphics2D)g;  // Create a Java2D version of g. 
g2d.translate(170, 0);    // Translate the center of our coordinates. 
g2d.rotate(1);      // Rotate the image by 1 radian. 
g2d.drawImage(image, 0, 0, 200, 200, this); 

來源:Rotate Image