- 89 名前:名前は開発中のものです。 mailto:sage [2005/12/08(木) 15:51:44 ID:Voeburfj]
- time*PI/, て何だよコンパイル通るのかよ
protected BufferedImage image = 知らん; protected Point2D center = 知らん; protected AffineTransform rot = new AffineTransform(); protected double rpf = 0.1; //回転の量 protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; // ... ここで背景描画する // rpfの量だけ回転させて描画 rot.rotate(rpf, center.getX(), center.getY()); g2.drawImage(image, rot, null); } 2D じゃない方の Graphics の使い方はわすれた。
|

|