Exemplo n.º 1
0
 public ImmutablePalette(IPalette p, IPaletteRemap r) : this(p)
 {
     for (var i = 0; i < Palette.Size; i++)
     {
         colors[i] = (uint)r.GetRemappedColor(this.GetColor(i), i).ToArgb();
     }
 }
Exemplo n.º 2
0
 public void ApplyRemap(IPaletteRemap r)
 {
     for (var i = 0; i < Palette.Size; i++)
     {
         colors[i] = (uint)r.GetRemappedColor(this.GetColor(i), i).ToArgb();
     }
 }
Exemplo n.º 3
0
 public void ApplyRemap(IPaletteRemap r)
 {
     for (int i = 0; i < 256; i++)
     {
         colors[i] = (uint)r.GetRemappedColor(Color.FromArgb((int)colors[i]), i).ToArgb();
     }
 }
Exemplo n.º 4
0
 public Palette(Palette p, IPaletteRemap r)
 {
     colors = new uint[256];
     for (int i = 0; i < 256; i++)
     {
         colors[i] = (uint)r.GetRemappedColor(Color.FromArgb((int)p.colors[i]), i).ToArgb();
     }
 }
Exemplo n.º 5
0
 public void ApplyRemap(IPaletteRemap r)
 {
     for (int i = 0; i < 256; i++)
         colors[i] = (uint)r.GetRemappedColor(Color.FromArgb((int)colors[i]), i).ToArgb();
 }
Exemplo n.º 6
0
 public Palette(Palette p, IPaletteRemap r)
 {
     colors = (uint[])p.colors.Clone();
     ApplyRemap(r);
 }
Exemplo n.º 7
0
 public Palette(Palette p, IPaletteRemap r)
 {
     colors = new uint[256];
     for(int i = 0; i < 256; i++)
         colors[i] = (uint)r.GetRemappedColor(Color.FromArgb((int)p.colors[i]),i).ToArgb();
 }
Exemplo n.º 8
0
 public Palette(Palette p, IPaletteRemap r)
 {
     colors = (uint[])p.colors.Clone();
     ApplyRemap(r);
 }
Exemplo n.º 9
0
 public ImmutablePalette(IPalette p, IPaletteRemap r)
     : this(p)
 {
     for (var i = 0; i < Palette.Size; i++)
         colors[i] = (uint)r.GetRemappedColor(this.GetColor(i), i).ToArgb();
 }
Exemplo n.º 10
0
 public void ApplyRemap(IPaletteRemap r)
 {
     for (var i = 0; i < Palette.Size; i++)
         colors[i] = (uint)r.GetRemappedColor(this.GetColor(i), i).ToArgb();
 }
Exemplo n.º 11
0
 public Palette(Palette p, IPaletteRemap r)
 {
     for (int i = 0; i < 256; i++)
         colors.Add(r.GetRemappedColor(p.GetColor(i), i));
 }