DrawLine line styles

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

DrawLine line styles

Post by jenb » Fri Jul 20, 2007 1:55 pm

With the ActiveX version of TeeChart I could get good distinction between line types (dashed, dash-dot, dash-dot-dot, and dotted). With the new .NET version the distinction is not so great - to set the line type I am using, e.g.:

dlNewLine.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
dlNewLine.Pen.DashCap = System.Drawing.Drawing2D.DashCap.Round;

Can anyone suggest how I can get better distinction between the line types. I have posted two images on the upload site:

ActiveX version - TI-BE-5-6-7.jpg (good distinction)
.NET version - ShowLineTypes.jpg (poor distinction)

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Jul 23, 2007 9:08 am

Hello!

Please notice that ActiveX uses gdi and .NET uses gdi+, you can get a better distinction using the below line:

Code: Select all

 tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

Post by jenb » Mon Jul 23, 2007 9:45 am

Thanks for the suggestion. I tried with SmoothingMode.HighSpeed - it didn't seem to make much difference. Possibly SmoothingMode.HighQuality is slightly better but it's still not as good as previous. In particular I would like to lengthen the dashes and the gaps between them.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jul 23, 2007 11:46 am

Hello,


Try setting the ChartPen's Style to DashStyle.Custom and defining your own
ChartPen.DashPattern in a manner similar to:
http://msdn2.microsoft.com/en-us/librar ... ttern.aspx
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply