split remap classes

This commit is contained in:
Chris Forbes
2010-01-07 16:21:26 +13:00
parent b18e7b2226
commit ae03b52d23
4 changed files with 27 additions and 19 deletions

View File

@@ -0,0 +1,18 @@
using System.Drawing;
namespace OpenRa.FileFormats
{
public class SingleColorRemap : IPaletteRemap
{
Color c;
public SingleColorRemap(Color c)
{
this.c = c;
}
public Color GetRemappedColor(Color original, int index)
{
return original.A > 0 ? c : original;
}
}
}