Exemple #1
0
 public SolidColorBrushSet()
 {
     colorMap = new Rainbow();
     max      = colorMap.getMax();
     halfMax  = colorMap.getHalfMax();
     setMaxValue(max);
     brushMap = new SolidBrush[max];
     for (int i = 0; i < max; i++)
     {
         brushMap[i] = new SolidBrush(colorMap.getColor(i + 1));
     }
 }
Exemple #2
0
 public ColorPenSet()
 {
     colorMap = new Rainbow();
     max      = colorMap.getMax();
     halfMax  = colorMap.getHalfMax();
     setMaxValue(max);
     pens = new Pen[max];
     for (int i = 0; i < max; i++)
     {
         pens[i] = new Pen(colorMap.getColor(i + 1));
     }
 }