Related to Issue 205, but not the direct issue: read both copies of the format info...
[zxing.git] / javase / src / com / google / zxing / client / j2se / MatrixToImageWriter.java
index 3c82a56..4a65de1 100644 (file)
@@ -68,7 +68,7 @@ public final class MatrixToImageWriter {
     BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
     for (int x = 0; x < width; x++) {
       for (int y = 0; y < height; y++) {
-        image.setRGB(x, y, matrix.get(x, y) == 0 ? BLACK : WHITE);
+        image.setRGB(x, y, matrix.get(x, y) == 0 ? WHITE : BLACK);
       }
     }
     return image;