A simple colourmap that implements RGB444
Inheritance: IColourMap
Esempio n. 1
0
        public virtual IColourMap Clone()
        {
            IColourMap cmap = new SimpleColourMap(true);

            Colours = new Dictionary <Color, IColourInfo>();
            foreach (KeyValuePair <Color, IColourInfo> pair in cmap.Colours)
            {
                Colours[pair.Key] = pair.Value.Clone();
            }
            return(cmap);
        }
Esempio n. 2
0
 public virtual IColourMap Clone()
 {
     IColourMap cmap = new SimpleColourMap(true);
     Colours = new Dictionary<Color, IColourInfo>();
     foreach (KeyValuePair<Color, IColourInfo> pair in cmap.Colours)
     {
         Colours[pair.Key] = pair.Value.Clone();
     }
     return cmap;
 }