Skip to content

QrOffset

Alexander Zhirkevich edited this page Sep 5, 2022 · 3 revisions

Offset of the QR code pattern relative to it padding. Allows QR code pattern not to be centred but shifted to some angle.

data class QrOffset(
    @FloatRange(from = -1.0, to = 1.0) val x : Float,
    @FloatRange(from = -1.0, to = 1.0) val y : Float,
)

Properties

Property Description
x Horizontal shift of the QR code pattern. Must be from -1f to 1f
y Vertical shift of the QR code pattern. Must be from -1f to 1f
Clone this wiki locally