From be03860ec97f1193149de460b1b4fc1bcb5e5ad7 Mon Sep 17 00:00:00 2001 From: srowen Date: Wed, 16 Nov 2011 10:00:28 +0000 Subject: [PATCH] Typo fix - mixed up x/y! git-svn-id: https://zxing.googlecode.com/svn/trunk@2037 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../zxing/client/j2se/BufferedImageLuminanceSource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javase/src/com/google/zxing/client/j2se/BufferedImageLuminanceSource.java b/javase/src/com/google/zxing/client/j2se/BufferedImageLuminanceSource.java index dce3f02cf..18392a8e8 100644 --- a/javase/src/com/google/zxing/client/j2se/BufferedImageLuminanceSource.java +++ b/javase/src/com/google/zxing/client/j2se/BufferedImageLuminanceSource.java @@ -51,10 +51,10 @@ public final class BufferedImageLuminanceSource extends LuminanceSource { // The color of fully-transparent pixels is irrelevant. They are often, technically, fully-transparent // black (0 alpha, and then 0 RGB). They are often used, of course as the "white" area in a // barcode image. Force any such pixel to be white: - for (int i = top; i < top + height; i++) { - for (int j = left; j < left + width; j++) { - if ((image.getRGB(i, j) & 0xFF000000) == 0) { - image.setRGB(i, j, 0xFFFFFFFF); // = white + for (int y = top; y < top + height; y++) { + for (int x = left; x < left + width; x++) { + if ((image.getRGB(x, y) & 0xFF000000) == 0) { + image.setRGB(x, y, 0xFFFFFFFF); // = white } } }