|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
+using System.Drawing;
|
|
|
|
|
|
namespace bbiwarg.DataSource
|
|
|
{
|
|
@@ -28,10 +29,10 @@ namespace bbiwarg.DataSource
|
|
|
return height;
|
|
|
}
|
|
|
|
|
|
- public Color4 getColor(int x, int y)
|
|
|
+ public Color getColor(int x, int y)
|
|
|
{
|
|
|
- return new Color4(data[4 * (y * width + x) + 3], data[4 * (y * width + x) + 0],
|
|
|
- data[4 * (y * width + x) + 1], data[4 * (y * width + x) + 2]);
|
|
|
+ return Color.FromArgb(data[4 * (y * width + x) + 3], data[4 * (y * width + x) + 0],
|
|
|
+ data[4 * (y * width + x) + 1], data[4 * (y * width + x) + 2]);
|
|
|
}
|
|
|
}
|
|
|
}
|