alexzhirkevich / custom-qr-generator

Android library for creating QR codes with logo, custom shapes, colors, background image. Powered by ZXing
MIT License
173 stars 18 forks source link

How to use your library draw QR codes with 3 vertices and circles? Looking forward to your reply #36

Closed will12190 closed 1 year ago

will12190 commented 1 year ago

image

Similar to this

alexzhirkevich commented 1 year ago
val options = createQrVectorOptions {

    colors {
        dark = QrVectorColor.Solid(0XFF06084D.toColor())
    }

    shapes {
        frame = QrVectorFrameShape.Circle(1f)
        ball = QrVectorBallShape.Circle(1f)
        darkPixel = QrVectorPixelShape.Circle(.85f)
    }
}
will12190 commented 1 year ago

Thank you very much for your reply. I have tested it and it's okay. Thank you, God

will12190 commented 1 year ago

Hello, could you please ask me again? Today, I suddenly realized that your production has 4 circles. Can you set it to 3 circles? telegram-cloud-photo-size-5-6140911546985987114-y

alexzhirkevich commented 1 year ago
val options = createQrVectorOptions {

    colors {
        dark = QrVectorColor.Solid(0XFF06084D.toColor())
    }

    shapes {
        frame = QrVectorFrameShape.Circle(1f)
        ball = QrVectorBallShape.Circle(1f)
        darkPixel = QrVectorPixelShape.Circle(.85f)
    }
}

The sample mentioned above produces QR code with 3 eyes as a default behavior.

To enabled 4rd eye you need to set fourthEyeEnabled = true. So if you want to disable it you have to remove this line or set this flag to false.

will12190 commented 1 year ago

Thank you for your reply. After testing, it's ready. Thank you again, your friend. Welcome to China to play