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"
40 auto* pWriter = GetDataMatrixWriter();
41 DataVector<uint8_t> data =
42 pWriter->Encode(
WideString(contents), &width, &height);
43 return pWriter->RenderResult(data, 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
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)
fxcrt::WideStringView WideStringView
fxcrt::WideString WideString