public visHierar(HClusterNode hnode, string name, string measureName, Dictionary <string, string> labels) { InitializeComponent(); buffer = new Bitmap(pictureBox1.Width, pictureBox1.Height); drawH = new DrawHierarchical(hnode, measureName, labels, buffer, true); drawH.horizontalView = true; winName = name; this.Text = name; int[] tab = new int[4]; tab[0] = 0; tab[1] = 85; tab[2] = 170; tab[3] = 255; for (int i = 0; i < tab.Length; i++) { for (int j = 0; j < tab.Length; j++) { for (int n = 0; n < tab.Length; n++) { colorMap.Add(Color.FromArgb(tab[i], tab[j], tab[n])); } } } vecColor = labels; drawH.SetColors(); }
void InitVisHier() { int[] tab = new int[4]; tab[0] = 0; tab[1] = 85; tab[2] = 170; tab[3] = 255; for (int i = 0; i < tab.Length; i++) { for (int j = 0; j < tab.Length; j++) { for (int n = 0; n < tab.Length; n++) { colorMap.Add(Color.FromArgb(tab[i], tab[j], tab[n])); } } } drawH.SetColors(); }