package com.google.zxing.pdf417;\r
\r
import com.google.zxing.BarcodeFormat;\r
+import com.google.zxing.BinaryBitmap;\r
import com.google.zxing.DecodeHintType;\r
-import com.google.zxing.MonochromeBitmapSource;\r
import com.google.zxing.Reader;\r
import com.google.zxing.ReaderException;\r
import com.google.zxing.Result;\r
* @return a String representing the content encoded by the PDF417 code\r
* @throws ReaderException if a PDF417 code cannot be found, or cannot be decoded\r
*/\r
- public Result decode(MonochromeBitmapSource image) throws ReaderException {\r
+ public Result decode(BinaryBitmap image) throws ReaderException {\r
return decode(image, null);\r
}\r
\r
- public Result decode(MonochromeBitmapSource image, Hashtable hints)\r
+ public Result decode(BinaryBitmap image, Hashtable hints)\r
throws ReaderException {\r
DecoderResult decoderResult;\r
ResultPoint[] points;\r
decoderResult = decoder.decode(detectorResult.getBits());\r
points = detectorResult.getPoints();\r
}\r
- return new Result(decoderResult.getText(), decoderResult.getRawBytes(), points, BarcodeFormat.PDF417);\r
+ return new Result(decoderResult.getText(), decoderResult.getRawBytes(), points,\r
+ BarcodeFormat.PDF417);\r
}\r
\r
/**\r
* around it. This is a specialized method that works exceptionally fast in this special\r
* case.\r
*/\r
- private static BitMatrix extractPureBits(MonochromeBitmapSource image) throws ReaderException {\r
+ private static BitMatrix extractPureBits(BinaryBitmap image) throws ReaderException {\r
// Now need to determine module size in pixels\r
\r
int height = image.getHeight();\r