Changed the order of the BaseMonochromeBitmapSource constructor arguments to be width...
[zxing.git] / androidtest / src / com / google / zxing / client / androidtest / RGBMonochromeBitmapSource.java
index 5b5ae29..8f1c249 100644 (file)
@@ -39,7 +39,7 @@ public final class RGBMonochromeBitmapSource extends BaseMonochromeBitmapSource
   }
 
   public RGBMonochromeBitmapSource(Bitmap bitmap) {
-    super(bitmap.getHeight(), bitmap.getWidth());
+    super(bitmap.getWidth(), bitmap.getHeight());
     int width = bitmap.getWidth();
     int height = bitmap.getHeight();
     int[] pixels = new int[width * height];