Skip to content

QrBackground

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

Style of the QR code background. Can consist of color, image or both.

data class QrBackground(
    val drawable: DrawableSource = DrawableSource.Empty,
    @FloatRange(from = 0.0, to = 1.0) val alpha : Float = 1f,
    val scale: BitmapScale = BitmapScale.FitCenter,
    val color: QrColor = QrColor.Solid(Color(0xffffffff))
)

#Properties

Property Description
drawable Background image represented as a source of android Drawable
alpha Level of background image transparency. From 0f to 1f
scale Way of resizing image to the appropriate size
color Color of the QR code background. Applied below image
Clone this wiki locally