[英]Rotate 2d graphics images on fixed background
我正在编写Java代码来旋转固定背景图像上的图像,就像在时钟背景上旋转针形图像一样。
手表中有多根针,一根针数小时,另一根针数分钟。
如何在固定背景上旋转2D图形图像?
首先看一下...
您需要某种方式来更新机芯。 这可以通过使用单个或多个javax.swing.Timer计时器来实现,有关详细信息,请参见Swing中的并发 。
javax.swing.Timer
旋转有点有趣,但是可以通过使用AffineTransform来实现
AffineTransform
看一眼...
[英]Understanding Graphics 2D and rotate, drawRect methods
[英]Graphics (2D) Rotation: Rotate x Axis
[英]Graphics 2D not drawing images in Java
[英]Graphics 2D rotating on black/white background
[英]Rotate graphics2D
[英]Graphics and Graphics 2D in java
[英]Background Color in Java Graphics 2D is always black color
[英]Can I use 2d graphics as background for components in java?
[英]Java 2D Graphics: can't overlay images
[英]2d java Graphics
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.