Example #1
0
 private static void addColor(string key, int Red, int Green, int Blue)
 {
     if (colorDictionary.ContainsKey(key))
     {
         colorDictionary[key] = new QColor(Red, Green, Blue);
     }
     else
     {
         colorDictionary.Add(key, new QColor(Red, Green, Blue));
     }
 }
Example #2
0
        public static QColor GetColor(string Key, QColor Default)
        {
            QColor c;

            if (colorDictionary.TryGetValue(Key, out c))
            {
                return(c);
            }
            else
            {
                return(Default);
            }
        }
Example #3
0
 public QPen(QColor Color) : this(Color.Red, Color.Green, Color.Blue)
 {
 }
Example #4
0
 public static QColor ExtraDarken(QColor Input)
 {
     return(new QColor(Input.Red / 3,
                       Input.Green / 3,
                       Input.Blue / 3));
 }
Example #5
0
 static QColor()
 {
     QColor.Black = new QColor(0, 0, 0);
 }