Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は楕円形を描きg.fillOval (0, 0, 100, 40)ます。図形の中心から任意の角度で回転させるには?
g.fillOval (0, 0, 100, 40)
を使用するGraphics2Dと、次のことができます。
Graphics2D
Graphics2D g2 = (Graphics2D)g; g2.rotate(angle, 51, 21);