I think I got the palettes read
This commit is contained in:
+8
-11
@@ -32,26 +32,23 @@ namespace fxl.codes.kisekae.Models
|
||||
|
||||
public string FileName { get; }
|
||||
public string Comment { get; }
|
||||
|
||||
public Color[] Colors { get; private set; }
|
||||
|
||||
public void ParseColors(byte[] bytes, int depth)
|
||||
{
|
||||
Colors = new Color[0];
|
||||
}
|
||||
public Color[] Colors { get; set; }
|
||||
}
|
||||
|
||||
public class Color
|
||||
{
|
||||
public Color(int red, int green, int blue)
|
||||
public Color(int red, int green, int blue, int group, int depth)
|
||||
{
|
||||
Red = red;
|
||||
Green = green;
|
||||
Blue = blue;
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user