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.
我在 SWT GUI 中进行了一些 2D 绘图。为此,我有一个GC 对象。
如何在SWT Canvas内绘制旋转文本?
这应该这样做:
Transform tr = new Transform(display); tr.rotate(-90); gc.setTransform(tr); gc.drawText("Text", x, y);