Using system agnostic image processing

This commit is contained in:
Lani Aung
2021-10-04 19:50:22 -06:00
parent 7dfa28674e
commit 3fc504a4f6
6 changed files with 83 additions and 50 deletions
+2 -18
View File
@@ -1,3 +1,4 @@
using System.Drawing;
using System.Text.RegularExpressions;
namespace fxl.codes.kisekae.Models
@@ -32,23 +33,6 @@ namespace fxl.codes.kisekae.Models
public string FileName { get; }
public string Comment { get; }
public Color[] Colors { get; set; }
}
public class Color
{
public Color(int red, int green, int blue, int group, int depth)
{
var multiplier = depth == 12 ? 16 : 1;
Red = red * multiplier;
Green = green * multiplier;
Blue = blue * multiplier;
Group = group;
}
public int Red { get; }
public int Green { get; }
public int Blue { get; }
public int Group { get; }
internal Color[] Colors { get; set; }
}
}