Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 345

Summary: [TF02016684] Solid Pen has problems with transparency when the pen doesn't have tr...
Product: .NET TeeChart Reporter: sandra pazos <sandra>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: major    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2013-11-20 11:24:46 EST
Solid Pen has problems with transparency when the pen doesn't have transparency. When you work with a FastLine, Line series with a width of pen is thick the left grid line is visible betewen the line although the grid line of left axis are behain.  See the code to reproduce the problem: 
        public Form1()
        {
            InitializeComponent();
          
            tChart1.Aspect.View3D = false;
            tChart1.Legend.Visible = false;
            xxs_FLine1 = new Line(tChart1.Chart);
           // xxs_Gantt = new Gantt(tChart1.Chart);
           // xxs_Gantt.Pointer.InflateMargins = false;
            xxs_FLine1.Color = Color.Yellow;
           
            xxs_FLine1.bBrush.Visible = false;
            xxs_FLine1.LinePen.Width = 6;
            tChart1.Axes.Bottom.Grid.Color = Color.Red;
            tChart1.Axes.Left.Grid.Color = Color.Red;
     
            for (Int32 i = 0; i < 5000; i++)
            {
                xxs_FLine1.Add(i, 10);
         
            }
} [created:2013-08-09T17:05:44.000+01:00 reported by:sandra@steema.com reported in version:]
Comment 1 christopher ireland 2014-01-29 10:35:56 EST
Missing the setting of an appropriate EndCap, e.g.

    Line xxs_FLine1;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      tChart1.Legend.Visible = false;
      xxs_FLine1 = new Line(tChart1.Chart);
      // xxs_Gantt = new Gantt(tChart1.Chart);
      // xxs_Gantt.Pointer.InflateMargins = false;
      xxs_FLine1.Color = Color.Yellow;

      xxs_FLine1.bBrush.Visible = false;
      xxs_FLine1.LinePen.Width = 3;
      tChart1.Axes.Bottom.Grid.Color = Color.Red;
      tChart1.Axes.Left.Grid.Color = Color.Red;

      for (Int32 i = 0; i < 5000; i++)
      {
        xxs_FLine1.Add(i, 10);

      }

      xxs_FLine1.LinePen.EndCap = System.Drawing.Drawing2D.LineCap.Round; //ADD THIS LINE

    }