Closed fdncred closed 5 years ago
I think it should be this since bytes are in BGRA order.
public Color[] Array_Color
{
get {
if ((Values == null))
{ return null; }
List<Color> QList = new List<Color>();
for (int i = 0; i <= Array_Bytes.Count() - 1; i += 4) {
byte[] B = new byte[4];
System.Array.Copy(Array_Bytes, i, B, 0, B.Length);
QList.Add(Color.FromArgb(B[3], B[2], B[1], B[0])); // B G R A
}
return QList.ToArray();
}
}
thats right. i will fix it
There is some problem with how the color arrays for a PixColormap are created. It looks like they're out of order to me in the Array_Color .