| | |
| | | namespace HStation.WinFrmUI.PhartRelation |
| | | using NPOI.SS.Formula.Functions; |
| | | using System.Diagnostics.Metrics; |
| | | |
| | | namespace HStation.WinFrmUI.PhartRelation |
| | | { |
| | | public class ColorHelper |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | private static List<Color> _color_array = new List<Color>() |
| | | { |
| | | Color.Red, Color.Blue, Color.Green,Color.DodgerBlue, |
| | | Color.Fuchsia, Color.MidnightBlue, Color.Maroon, Color.Aquamarine, |
| | | Color.Bisque,Color.BurlyWood |
| | | }; |
| | | |
| | | |
| | | public static System.Drawing.Color GetDarkerColor(int index) |
| | | { |
| | | if (index < _color_array.Count) |
| | | { |
| | | return _color_array[index]; |
| | | } |
| | | return GetDarkerColor(); |
| | | } |
| | | |
| | | //获取加深颜色 |
| | | public static Color GetDarkerColor(Color color) |
| | | { |
| | |
| | | return Color.FromArgb(r, g, b); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |