예제 #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);
 }
예제 #2
0
 public override void CopyTo(NamedColor[] array, int start)
 {
     _colors.CopyTo(array, start);
 }
예제 #3
0
 public override void Add(NamedColor color)
 {
     Dirty = true;
     _colors.Add(color);
 }
예제 #4
0
 public override void Insert(int index, NamedColor color)
 {
     Dirty = true;
     _colors.Insert(index, color);
 }
예제 #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);
 }
예제 #6
0
 public override void Insert(int index, NamedColor color)
 {
     Dirty = true;
     _colors.Insert(index, color);
 }
예제 #7
0
 public override void Add(NamedColor color)
 {
     Dirty = true;
     _colors.Add(color);
 }
예제 #8
0
 bool ICollection <NamedColor> .Remove(NamedColor color)
 {
     throw new InvalidOperationException();
 }
예제 #9
0
 bool ICollection <NamedColor> .Contains(NamedColor color)
 {
     throw new InvalidOperationException();
 }
예제 #10
0
 int IList <NamedColor> .IndexOf(NamedColor color)
 {
     throw new InvalidOperationException();
 }
예제 #11
0
 public abstract void Add(NamedColor color);
예제 #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);