diff --git a/README.md b/README.md index 95369fd..25eddd8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ #### 2.在Module目录下的build.gradle中添加依赖 ``` gradle dependencies { - compile 'com.github.maning0303:MNZXingCode:V1.1.6' + compile 'com.github.maning0303:MNZXingCode:V1.1.7' } ``` @@ -99,9 +99,17 @@ 3:生成二维码: Bitmap qrImage = ZXingUtils.createQRImage("xxxxxx"); Bitmap qrImage = ZXingUtils.createQRCodeWithLogo("xxxxxx", logoBitmap); + + 4:解析图片中的二维码: + String code = ZXingUtils.syncDecodeQRCode(String picturePath); + String code = ZXingUtils.syncDecodeQRCode(Bitmap bitmap); ``` ## 版本记录: + v1.1.7: + 1.图片识别二维码对图片进行压缩处理,防止OOM + 2.优化界面显示 + v1.1.6: 1.修复8.0-Only fullscreen opaque activities can request orientation错误 2.优化启动退出动画