Gradient fonts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Gradient fonts

Post by UserLS » Mon Nov 02, 2009 9:24 pm

In my examples the gradient is set as following:
start color = red
middle color = yellow
end color = green

Here is how horizontal direction come up:
Horizontal.jpg
Horizontal.jpg (11.33 KiB) Viewed 3096 times

The vertical is not much better:
Vertical.jpg
Vertical.jpg (10.76 KiB) Viewed 3096 times
The "from center" works only if the word wrap is set to "Tile" (at least it works then).

I do not know about your clients, but mine will not like this... And again, in old Win32 version we did not have any problems like this!

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Gradient fonts

Post by Yeray » Tue Nov 03, 2009 12:58 pm

Hi UserLS,

Yes you are right. I could reproduce it with the following code and I've added it to the wish list to be fixed in further releases (TF02014528).

Code: Select all

tChart1.Header.CustomPosition = true;
tChart1.Header.Left = 30;
tChart1.Header.Top = 50;
tChart1.Header.Font.Size = 80;

tChart1.Header.Font.Gradient.Visible = true;
tChart1.Header.Font.Gradient.StartColor = Color.Red;
tChart1.Header.Font.Gradient.MiddleColor = Color.Yellow;
tChart1.Header.Font.Gradient.EndColor = Color.Green;
tChart1.Header.Font.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;

tChart1.Footer.Visible = true;
tChart1.Footer.Text = "My Footer";
tChart1.Footer.CustomPosition = true;
tChart1.Footer.Left = 30;
tChart1.Footer.Top = 180;
tChart1.Footer.Font.Size = 80;

tChart1.Footer.Font.Gradient.Visible = true;
tChart1.Footer.Font.Gradient.StartColor = Color.Red;
tChart1.Footer.Font.Gradient.MiddleColor = Color.Yellow;
tChart1.Footer.Font.Gradient.EndColor = Color.Green;
tChart1.Footer.Font.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply