[英]How can I create an animation frame with netbeans?
I use netbeans,and I insert an image on the lable which is on the desktop pane ,I want to rotate that image in its place ,what should i do? 我使用netbeans,然后在桌面窗格的标签上插入一个图像,我想将该图像旋转到原处,该怎么办? please help me.
请帮我。 thanks.
谢谢。
You could use the Graphics2D and specifically [this][1] method which lets you redraw the image with an AffineTransform and that lets you 'rotate' the image. 您可以使用Graphics2D,特别是[this] [1]方法,该方法可让您使用AffineTransform重绘图像,并可以“旋转”图像。
[1]: http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#drawImage(java.awt.Image , java.awt.geom.AffineTransform, java.awt.image.ImageObserver) [1]: http : //java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#drawImage (java.awt.Image,java.awt.geom.AffineTransform,java.awt。 image.ImageObserver)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.