Prison
qrcodebarcode.cpp
25 // try decreasing ECC levels, in case the higher levels result in overflowing the maximum content size
52 QRinput_append(input.get(), QR_MODE_8, byteArrayData().size(), reinterpret_cast<const uint8_t *>(byteArrayData().constData()));
64 uchar *img = new uchar[4 * sizeof(char *) * (2 * margin + code->width) * (2 * margin * +code->width)];
80 if (row < margin || row >= (code->width + margin) || col < margin || col >= (code->width + margin)) {
107 QImage(img, code->width + 2 * margin, code->width + 2 * margin, QImage::Format_ARGB32).copy(); // deep copy as we are going to delete img
QImage paintImage(const QSizeF &size) override
This is the function doing the actual work in generating the barcode.
Definition: qrcodebarcode.cpp:34
Format_ARGB32
Definition: abstractbarcode.h:19
const QColor & backgroundColor() const
Definition: abstractbarcode.cpp:176
base class for barcode generators To add your own barcode generator, subclass this class and reimplem...
Definition: abstractbarcode.h:32
void resize(int size)
const char * constData() const const
QByteArray byteArrayData() const
Binary data encoded in this barcode.
Definition: abstractbarcode.cpp:81
const QColor & foregroundColor() const
Definition: abstractbarcode.cpp:181
QImage copy(const QRect &rectangle) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.