7
8
9
10
11
12
13
14
15
16
17
18
19
20
22#include "fxbarcode/cbc_qrcode.h"
28#include "core/fxcrt/data_vector.h"
29#include "fxbarcode/qrcode/BC_QRCodeWriter.h"
35bool CBC_QRCode::
Encode(WideStringView contents) {
38 CBC_QRCodeWriter* pWriter = GetQRCodeWriter();
39 DataVector<uint8_t> data = pWriter->Encode(
40 contents, pWriter->error_correction_level(), &width, &height);
54CBC_QRCodeWriter* CBC_QRCode::GetQRCodeWriter() {
55 return static_cast<CBC_QRCodeWriter*>(m_pBCWriter.get());
bool Encode(WideStringView contents) override
BC_TYPE GetType() override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
bool RenderResult(pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)