问题
I doing some 2D drawing in a SWT GUI. For that I have a GC Object.
How can I draw rotatet text inside of an SWT Canvas?
回答1:
This should do it:
Transform tr = new Transform(display);
tr.rotate(-90);
gc.setTransform(tr);
gc.drawText("Text", x, y);
来源:https://stackoverflow.com/questions/12618023/how-to-draw-rotated-text-inside-of-a-gc