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 2571

Summary: Holes in TeeChart.Server Line Series when exported at different sizes
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: .NET 5.0Assignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Image one
Image two
Image three
Image four

Description christopher ireland 2022-11-29 06:43:15 EST
Created attachment 1018 [details]
Image one

Code to reproduce:

            var mChart = new TChart();
            mChart.Aspect.View3D = false;

            mChart.Header.Visible = false;
            mChart.Legend.Visible = false;

            mChart.Axes.Left.AutomaticMinimum = false;
            mChart.Axes.Left.Minimum = 0;
            mChart.Axes.Left.AutomaticMaximum = false;
            mChart.Axes.Left.Maximum = 100;

            mChart.Axes.Bottom.AutomaticMinimum = false;
            mChart.Axes.Bottom.Minimum = 0;
            mChart.Axes.Bottom.AutomaticMaximum = false;
            mChart.Axes.Bottom.Minimum = 100;

            //Line:

            Line line = new Line(mChart.Chart);
            line.LinePen.Width = 2;
            line.Color = System.Drawing.Color.Green;

            line.Smoothed = true;

            line.Add(0, 60);
            line.Add(20, 40);
            line.Add(40, 60);
            line.Add(80, 40);
            line.Add(100, 60);

            mChart.Series.Add(line);

            int i = 1;

            //Holes in the line for some picture sizes:

            mChart.Export.Image.PNG.Width = 240;
            mChart.Export.Image.PNG.Height = 120;
            mChart.Export.Image.PNG.Save($"C:\\TeeChartTest\\chart_{i++:d2}.png");

            mChart.Export.Image.PNG.Width = 320;
            mChart.Export.Image.PNG.Height = 160;
            mChart.Export.Image.PNG.Save($"C:\\TeeChartTest\\chart_{i++:d2}.png");

            mChart.Export.Image.PNG.Width = 520;
            mChart.Export.Image.PNG.Height = 260;
            mChart.Export.Image.PNG.Save($"C:\\TeeChartTest\\chart_{i++:d2}.png");

            mChart.Export.Image.PNG.Width = 800;
            mChart.Export.Image.PNG.Height = 400;
            mChart.Export.Image.PNG.Save($"C:\\TeeChartTest\\chart_{i++:d2}.png");

Four images attached
Comment 1 christopher ireland 2022-11-29 06:43:51 EST
Created attachment 1019 [details]
Image two
Comment 2 christopher ireland 2022-11-29 06:44:11 EST
Created attachment 1020 [details]
Image three
Comment 3 christopher ireland 2022-11-29 06:44:32 EST
Created attachment 1021 [details]
Image four