【发布时间】:2013-12-20 09:35:57
【问题描述】:
我在 Java 中试验 Graphics2D。但像往常一样,我被困住了。 :P 问题是: 假设我有这段代码,
Graphics2D g=(Graphics2D)(this.getGraphics()); //Inside a JFrame
g.rotate(Math.PI/8);
g.drawLine(10, 20, 65, 80);
//I want this one and all following lines to be drawn without any rotation
g.drawLine(120, 220, 625, 180);
有可能吗???我知道一定有某种方法,但我无法弄清楚。请帮忙。
【问题讨论】:
标签: java swing graphics2d