Explorar el Código

Fixed getColor() in ColorImage.

Daniel Kauth hace 11 años
padre
commit
8d32ab1f8d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      bbiwarg/DataSource/ColorImage.cs

+ 2 - 2
bbiwarg/DataSource/ColorImage.cs

@@ -31,8 +31,8 @@ namespace bbiwarg.DataSource
 
         public Color getColor(int x, int y)
         {
-            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]);
+            return Color.FromArgb(data[4 * (y * width + x) + 3], data[4 * (y * width + x) + 2],
+                                  data[4 * (y * width + x) + 0], data[4 * (y * width + x) + 1]);
         }
     }
 }