Skip to content

A very simple and easy to use qr code style generation library

Notifications You must be signed in to change notification settings

wu928320442/QRCodeStyle

Repository files navigation

library introduce

  • A very simple and easy to use qr code style generation library
  • Free combination of qr code style

Use example

  • Set the space of the outer circle of the logo
        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);
  • Set Mask
        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);
  • Set Bg
        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);

Import library use Gradle

compile 'com.wjj.easy:qrcodestyle:1.0.0'

About author

About

A very simple and easy to use qr code style generation library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages