Custom drawing ratated text

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tekwiz
Newbie
Newbie
Posts: 9
Joined: Sun Oct 31, 2004 4:00 am

Custom drawing ratated text

Post by tekwiz » Tue Sep 06, 2005 10:36 am

Hi.

I'm writing custom text using the
Canvas.RotateLabel().
Canvas.TextOut() methods. all works as expected, but I would need to be able to specify the color of the rotated text. I tried using the mCanvas.Pen.Color property, that affects lines drawn using Canvas.LineTo methods, but not text written with Canvas.RotateLabel(). Non rotated text can be colored using the font argument to TextOut, but is therre any way to rotate colored text?

thanks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Sep 06, 2005 11:05 am

Hi tekwiz,

You should use Canvas.Font.Color as shown here:

Code: Select all

		private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
		{
			g.Font.Color = Color.Blue;
			g.RotateLabel(100,100,"Rotated Label", 45);
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tekwiz
Newbie
Newbie
Posts: 9
Joined: Sun Oct 31, 2004 4:00 am

thanks...

Post by tekwiz » Tue Sep 06, 2005 11:16 am

thanks a lot.
Saved my *ss again :-)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Sep 06, 2005 11:25 am

:lol:

You're welcome!

I'm glad I could help you :wink:.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply