标签:class space 简单 alt 技术 github int 易用 mail
Bitmap logo = BitmapFactory.decodeResource(getResources(), R.mipmap.logo);
ImageView logo_iv = (ImageView) findViewById(R.id.logo_circle_space_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setLogo(logo)
.setCircle(true)
.setSpace(5)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
Bitmap mask = BitmapFactory.decodeResource(getResources(), R.mipmap.logo);
ImageView logo_iv = (ImageView) findViewById(R.id.mask_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setMask(mask)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
Bitmap bg = BitmapFactory.decodeResource(getResources(), R.mipmap.bg);
ImageView logo_iv = (ImageView) findViewById(R.id.bg_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setBg(bg)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
https://github.com/wu928320442/QRCodeStyle
compile ‘com.wjj.easy:qrcodestyle:1.0.0‘
[Android开源]一个非常简单易用用来花式展示二维码样式生成的库QRCodeStyle
标签:class space 简单 alt 技术 github int 易用 mail
原文地址:http://blog.csdn.net/wu928320442/article/details/70572802