remapping!

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1108 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-06 01:20:10 +00:00
parent c77b8378f5
commit 782cea668b
14 changed files with 51 additions and 0 deletions

View File

@@ -32,5 +32,11 @@ namespace OpenRa.FileFormats
colors[3] = Color.FromArgb(178, 0, 0, 0);
colors[4] = Color.FromArgb(140, 0, 0, 0);
}
public Palette(Palette p, PaletteRemap r)
{
for (int i = 0; i < 256; i++)
colors.Add(r.GetRemappedColor(p.GetColor(i), i));
}
}
}