7
8
9
10
11
12
13
14
15
16
17
18
19
20
22#include "fxbarcode/cbc_datamatrix.h"
28#include "core/fxcrt/data_vector.h"
29#include "core/fxcrt/fx_coordinates.h"
30#include "fxbarcode/datamatrix/BC_DataMatrixWriter.h"
37bool CBC_DataMatrix::
Encode(WideStringView contents) {
40 auto* pWriter = GetDataMatrixWriter();
41 DataVector<uint8_t> data =
42 pWriter->Encode(WideString(contents), &width, &height);
56CBC_DataMatrixWriter* CBC_DataMatrix::GetDataMatrixWriter() {
57 return static_cast<CBC_DataMatrixWriter*>(m_pBCWriter.get());
~CBC_DataMatrix() override
bool Encode(WideStringView contents) override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
BC_TYPE GetType() override
bool RenderResult(pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)