![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Only one Hatch Brush type is working in TeeChart.Server.dll | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | .NET 5.0 | Assignee: | 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: | Resulting image | ||
This issue is not fully resolved, as only a selection of the most commonly-used HatchBrush styles has been implemented. |
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(); }