Quellcode durchsuchen

Fixed getColor() in ColorImage.

Daniel Kauth vor 11 Jahren
Ursprung
Commit
8d32ab1f8d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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]);
         }
     }
 }