瀏覽代碼

Fixed getColor() in ColorImage.

Daniel Kauth 11 年之前
父節點
當前提交
8d32ab1f8d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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]);
         }
     }
 }