You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Is it possible to remove the border created around the QRCode or change its size?
I can always crop it or manipulate the bitmap, but it would be nice to have a lib's method to do so.
Thanks.
ps: I'm using it for Android.
The text was updated successfully, but these errors were encountered:
int myMargin = 0;
Bitmap qrCode = QRCode.from(data).withHint(EncodeHintType.MARGIN, myMargin).bitmap();
That's how you manipulate the margin.
Funny thing is, with margin = 0 you still have a little margin. So If you want to completely remove it I guess you'll have to manipulate the bitmap:
Hello,
Is it possible to remove the border created around the QRCode or change its size?
I can always crop it or manipulate the bitmap, but it would be nice to have a lib's method to do so.
Thanks.
ps: I'm using it for Android.
The text was updated successfully, but these errors were encountered: