logo没有居中
Opened this issue · 0 comments
github793298486 commented
Describe the bug(BUG描述)
二维码添加logo,没有居中显示,按照案例代码复现,也是出现不居中中的情况
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();
}
}