Rahul Razdan
Rahul Razdan

Reputation: 429

zxing library , MonochromeBitmapSource and BufferedImageMonochromeBitmapSource missing?

I'm using zxing library

Following code giving compile time error after adding zxing 2.1 dependency

MonochromeBitmapSource source = new BufferedImageMonochromeBitmapSource(bufferedImage);

i replaced it with

LuminanceSource lumiancesource = new BufferedImageLuminanceSource(bufferedImage);
BinaryBitmap source = new BinaryBitmap(new GlobalHistogramBinarizer(lumiancesource));

I'm correct ????? As project still in other compilation errors i can't run and check , so need help .

kindly give suggestions .

Thanks

Upvotes: 0

Views: 261

Answers (1)

Sean Owen
Sean Owen

Reputation: 66866

MonochromeBitmapSource is not a class in the project. Your second snippet looks correct.

Upvotes: 1

Related Questions