alexzhirkevich / custom-qr-generator

Android library for creating QR codes with logo, custom shapes, colors, background image. Powered by ZXing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Central symmetry of shapes

alexzhirkevich opened this issue · comments

    How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top,  right top and left bottom eye side? 

unitag_qrcode_standard

Originally posted by @hardikbhalodi in #8 (comment)

Vector codes

From 1.5.5 central symmetry is enabled by default and can be changed with

val options = createQrVectorOptions {
    shapes(centralSymmetry = enabled){
        /// .....
    }
}

Or in builder :

val shapes = QrVectorShapes(
    centralSymmetry = enabled,
    frame = ...,
    ball = ...
)

Raster codes

Central symmetry was enabled by default from the beginning. Cannot be disabled.

commented

Thanks, i will check it out

    How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top,  right top and left bottom eye side? 

unitag_qrcode_standard

Originally posted by @hardikbhalodi in #8 (comment)

Shape like this now can be created using bottomRight = false property in QrVectorFrameShape.RoundCorners and QrVectorBallShape.RoundCorners constructors