Added getBlackDiagonal() which I likely want to use later
[zxing.git] / core / src / com / google / zxing / common / CroppedMonochromeBitmapSource.java
index f78cc38..72c3ec2 100644 (file)
@@ -21,7 +21,7 @@ import com.google.zxing.MonochromeBitmapSource;
 import com.google.zxing.ReaderException;
 
 /**
- * Encapulates a cropped region of another {@link com.google.zxing.MonochromeBitmapSource}.
+ * Encapulates a cropped region of another {@link MonochromeBitmapSource}.
  *
  * @author Sean Owen
  */
@@ -72,6 +72,10 @@ public final class CroppedMonochromeBitmapSource implements MonochromeBitmapSour
     return right - left;
   }
 
+  public BitArray getBlackDiagonal(int x, int y, int dx, int dy, BitArray diagonal, int size) {
+    return delegate.getBlackDiagonal(left + x, top + y, dx, dy, diagonal, size);
+  }
+
   public void estimateBlackPoint(BlackPointEstimationMethod method, int argument)
       throws ReaderException {
     // Hmm, the delegate will probably base this on the whole image though...