7#ifndef FXBARCODE_BC_TWODIMWRITER_H_
8#define FXBARCODE_BC_TWODIMWRITER_H_
12#include "core/fxcrt/fx_coordinates.h"
13#include "fxbarcode/BC_Writer.h"
14#include "third_party/base/containers/span.h"
35 std::unique_ptr<CBC_CommonBitMatrix> m_output;
38 int32_t m_leftPadding;
41 int32_t m_inputHeight;
42 int32_t m_outputWidth;
43 int32_t m_outputHeight;
44 int32_t m_iCorrectionLevel = 1;
45 const bool m_bFixedSize;
bool RenderResult(pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
int32_t error_correction_level() const
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)
void set_error_correction_level(int32_t level)
~CBC_TwoDimWriter() override
CBC_TwoDimWriter(bool bFixedSize)
static const FX_ARGB kBackgroundColor
static const FX_ARGB kBarColor
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
void Concat(const CFX_Matrix &right)
void AppendRect(float left, float bottom, float right, float top)
bool DrawPath(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options)
static constexpr CFX_FillRenderOptions EvenOddOptions()
static constexpr CFX_FillRenderOptions WindingOptions()