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 2570 - Only one Hatch Brush type is working in TeeChart.Server.dll
Summary: Only one Hatch Brush type is working in TeeChart.Server.dll
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 08:49 EST by christopher ireland
Modified: 2022-11-29 07:13 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Resulting image (84.69 KB, image/png)
2022-11-21 08:49 EST, christopher ireland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2022-11-21 08:49:51 EST
Created attachment 1017 [details]
Resulting image

Running the following code gives the attached image, in which we can see that all the Hatch Brush styles give the same result.

        private static void Main(string[] args)
        {
            var path = $@"{AppDomain.CurrentDomain.BaseDirectory}Chart{DateTime.Now.Ticks}.png";

            var tChart1 = new TChart();


            foreach (Steema.TeeChart.Drawing.HatchStyle hatchStyle in Enum.GetValues(typeof(Steema.TeeChart.Drawing.HatchStyle)))
            {
                var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
                bar1.Add((int)hatchStyle);

                bar1.Brush.Style = hatchStyle;
                bar1.Brush.Color = System.Drawing.Color.Red;
                bar1.Brush.ForegroundColor = System.Drawing.Color.Blue;
            }

            tChart1.Header.Text += $" version {Steema.TeeChart.Utils.Version}";

            var png = tChart1.Export.Image.PNG;
            png.Width = 550;
            png.Height = 550;
            png.Save(path);

            new Process
            {
                StartInfo = new ProcessStartInfo(path)
                {
                    UseShellExecute = true
                }
            }.Start();
        }
Comment 1 christopher ireland 2022-11-29 07:13:26 EST
This issue is not fully resolved, as only a selection of the most commonly-used HatchBrush styles has been implemented.