New features:
- Added DSL
QrOptions
builder -createQrOptions
- Added ablity to create custom elements shapes by drawing on canvas (implement
QrCanvasShapeModifier
and convert it to necessary shape or usedrawElementShape
function inside DSL build) - Added ablity to create custom
QrColor
by drawing on canvas (implementQrCanvasColor
or usedraw
function inside DSL build) - Added
BitmapScale
forQrLogo
andQrBackgroundImage
. You can nowCenterCrop
your drawable instead of resizing it to square - Changed logo padding API. Now it is separate class
QrLogoPadding
. It now can beEmpty
,Accurate
(like before) orNatural
(accurate, but all cropped pixels are removed) - Added new gradient color type -
SquareGradient
. Looks likeRadialGradient
but with square shape
Shapes:
- Optimized default shapes
- Reworked some default shapes
- Added new default shape -
QrPixelShape.Star
Bugfix:
- Fixed gradient colors for QR pixels. Now it is properly centered.
- Fixed
RadialGradient
radius. Now it is bigger. - Fixed ball and frame color incorrect draw position