Changed the order of the BaseMonochromeBitmapSource constructor arguments to be width...
[zxing.git] / javame / src / com / google / zxing / client / j2me / LCDUIImageMonochromeBitmapSource.java
index fb06732..b65b715 100644 (file)
@@ -32,11 +32,19 @@ public final class LCDUIImageMonochromeBitmapSource extends BaseMonochromeBitmap
   private final int[] pixelHolder;
 
   public LCDUIImageMonochromeBitmapSource(Image image) {
-    super(image.getHeight(), image.getWidth());
+    super(image.getWidth(), image.getHeight());
     this.image = image;
     pixelHolder = new int[1];
   }
 
+  public final int getHeight() {
+    return image.getHeight();
+  }
+
+  public final int getWidth() {
+    return image.getWidth();
+  }
+
   // This is expensive and should be used very sparingly.
   protected int getLuminance(int x, int y) {
     image.getRGB(pixelHolder, 0, getWidth(), x, y, 1, 1);