diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-23 20:45:53 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-23 20:45:53 +0300 |
commit | 7dd48d7271047e2d18cc92d2fb0d3d4e9f62cb53 (patch) | |
tree | 77e1def438bcd11482517f73203c0f695035213c /NesTiler/Palette.cs | |
parent | 2059d5e112e8a9bb0064c132677bd723154af424 (diff) |
Optimization.
Diffstat (limited to 'NesTiler/Palette.cs')
-rw-r--r-- | NesTiler/Palette.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NesTiler/Palette.cs b/NesTiler/Palette.cs index 6835dd2..0dc31ff 100644 --- a/NesTiler/Palette.cs +++ b/NesTiler/Palette.cs @@ -33,7 +33,7 @@ namespace com.clusterrr.Famicom.NesTiler // Empty palette
}
- public Palette(SKBitmap image, int leftX, int topY, int width, int height, Color bgColor)
+ public Palette(FastBitmap image, int leftX, int topY, int width, int height, Color bgColor)
{
Dictionary<Color, int> colorCounter = new Dictionary<Color, int>();
for (int y = topY; y < topY + height; y++)
@@ -69,7 +69,7 @@ namespace com.clusterrr.Famicom.NesTiler if (colorsList.Count > i) this[i + 1] = colorsList[i];
}
- public double GetTileDelta(SKBitmap image, int leftX, int topY, int width, int height, Color bgColor)
+ public double GetTileDelta(FastBitmap image, int leftX, int topY, int width, int height, Color bgColor)
{
double delta = 0;
for (int y = topY; y < topY + height; y++)
|