Example #1
0
 private void WriteRGBColor(EndianBinaryWriter writer, NamedColor c)
 {
     writer.Write((ushort)((c.Color.R / 255.0f) * ushort.MaxValue));
     writer.Write((ushort)((c.Color.G / 255.0f) * ushort.MaxValue));
     writer.Write((ushort)((c.Color.B / 255.0f) * ushort.MaxValue));
     writer.Write((ushort)0);
 }
Example #2
0
 public override void CopyTo(NamedColor[] array, int start)
 {
     _colors.CopyTo(array, start);
 }
Example #3
0
 public override void Add(NamedColor color)
 {
     Dirty = true;
     _colors.Add(color);
 }
Example #4
0
 public override void Insert(int index, NamedColor color)
 {
     Dirty = true;
     _colors.Insert(index, color);
 }
Example #5
0
 private void WriteRGBColor(EndianBinaryWriter writer, NamedColor c)
 {
     writer.Write((ushort) ((c.Color.R / 255.0f) * ushort.MaxValue));
     writer.Write((ushort) ((c.Color.G / 255.0f) * ushort.MaxValue));
     writer.Write((ushort) ((c.Color.B / 255.0f) * ushort.MaxValue));
     writer.Write((ushort) 0);
 }
Example #6
0
 public override void Insert(int index, NamedColor color)
 {
     Dirty = true;
     _colors.Insert(index, color);
 }
Example #7
0
 public override void Add(NamedColor color)
 {
     Dirty = true;
     _colors.Add(color);
 }
Example #8
0
 bool ICollection <NamedColor> .Remove(NamedColor color)
 {
     throw new InvalidOperationException();
 }
Example #9
0
 bool ICollection <NamedColor> .Contains(NamedColor color)
 {
     throw new InvalidOperationException();
 }
Example #10
0
 int IList <NamedColor> .IndexOf(NamedColor color)
 {
     throw new InvalidOperationException();
 }
Example #11
0
 public abstract void Add(NamedColor color);
Example #12
0
        // Operations not supported by this interface.
        // These are because dupe colors are allowed.

        // Operations implementors must implement.
        public abstract void Insert(int index, NamedColor color);