0

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?

Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
Skip
  • 6,240
  • 11
  • 67
  • 117

1 Answers1

2

This should do it:

Transform tr = new Transform(display);
tr.rotate(-90);
gc.setTransform(tr);

gc.drawText("Text", x, y);
Baz
  • 36,440
  • 11
  • 68
  • 94