Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logo没有居中 #117

Open
github793298486 opened this issue Oct 25, 2023 · 0 comments
Open

logo没有居中 #117

github793298486 opened this issue Oct 25, 2023 · 0 comments

Comments

@github793298486
Copy link

github793298486 commented Oct 25, 2023

Describe the bug(BUG描述)
二维码添加logo,没有居中显示,按照案例代码复现,也是出现不居中中的情况

文档案例是居中的
image

代码复现的
image

To Reproduce(复现)

@Test
    public void logoQr4() {
        try {
            String msg = "http://weixin.qq.com/r/FS9waAPEg178rUcL93oH";
            String logo = "logo.jpg";
            boolean ans = QrCodeGenWrapper.of(msg)
                    .setW(400)
                    .setLogo(logo)
                    // 圆形logo支持
                    .setLogoStyle(QrCodeOptions.LogoStyle.CIRCLE)
                    .setLogoBgColor(0xfffefefe)
                    .setLogoBorderBgColor(0xffc7c7c7)
                    .setLogoBorder(true)
                    .asFile(prefix + "/lqr4.png");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant