GithubHelp home page GithubHelp logo

Comments (6)

Qyanlong avatar Qyanlong commented on May 31, 2024

ViewfinderView类的onDraw方法中。
// 绘制扫描框以外4个区域 drawMask(canvas, frame); // 如果有二维码结果的Bitmap,在扫取景框内绘制不透明的result Bitmap if (resultBitmap != null) { paint.setAlpha(CURRENT_POINT_OPACITY); canvas.drawBitmap(resultBitmap, null, frame, paint); }
这部分注释掉就可以不会出现问题描述的情况。如果这么做了,会有其他的情况出现么?

from android-zxing.

woitaylor avatar woitaylor commented on May 31, 2024

里面有个
private void restartPreviewAfterDelay(long delayMS) {
mScannerView.restartPreviewAfterDelay(delayMS);
resetStatusView();
}调用一下就好了

from android-zxing.

Qyanlong avatar Qyanlong commented on May 31, 2024

感谢回复。您说的方法可以重新二次扫描。在任何一次扫描结束。不退出当前二维码扫描的Activity的话。界面确实会仍然有扫描的二维码bitmap的残留。如果调用restartPreviewAfterDelay(long delayMS) 中的时间设置如果过短的话。则会出现连续扫描的情况。当然这个是可以通过设置标记的方法来决定是否对之后的扫描结果进行处理。最后。。感谢您提供的开源代码。

from android-zxing.

woitaylor avatar woitaylor commented on May 31, 2024

上面的大兄弟,源码不是我写的,真是尴尬。

from android-zxing.

Qyanlong avatar Qyanlong commented on May 31, 2024

Zxing当然不是了。不过能够借鉴,学习就可以了。

from android-zxing.

mylhyl avatar mylhyl commented on May 31, 2024

可以考虑加入扫描成功后的残影控制开关,不需要残影应该显示什么?继续扫描?如何合理的提醒用户?给个建议,谢谢!

from android-zxing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.