8
9
10
11
12
13
14
15
16
17
18
19
20
21
23#include "fxbarcode/qrcode/BC_QRCodeWriter.h"
29#include "core/fxcrt/data_vector.h"
30#include "fxbarcode/common/BC_CommonByteMatrix.h"
31#include "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h"
32#include "fxbarcode/qrcode/BC_QRCoder.h"
33#include "fxbarcode/qrcode/BC_QRCoderEncoder.h"
34#include "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
35#include "fxbarcode/qrcode/BC_QRCoderMode.h"
36#include "fxbarcode/qrcode/BC_QRCoderVersion.h"
43 if (level < 0 || level > 3) {
53 int32_t* pOutHeight) {
69 return DataVector<uint8_t>();
73 return DataVector<uint8_t>();
77 std::unique_ptr<CBC_CommonByteMatrix> matrix = qr.TakeMatrix();
78 return matrix->TakeArray();
bool SetErrorCorrectionLevel(int32_t level) override
~CBC_QRCodeWriter() override
DataVector< uint8_t > Encode(WideStringView contents, int32_t ecLevel, int32_t *pOutWidth, int32_t *pOutHeight)
static bool Encode(WideStringView content, const CBC_QRCoderErrorCorrectionLevel *ecLevel, CBC_QRCoder *qrCode)
static CBC_QRCoderErrorCorrectionLevel * Q
static CBC_QRCoderErrorCorrectionLevel * H
static CBC_QRCoderErrorCorrectionLevel * L
static CBC_QRCoderErrorCorrectionLevel * M
int32_t GetMatrixWidth() const
void set_error_correction_level(int32_t level)
CBC_TwoDimWriter(bool bFixedSize)