diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-05 13:49:32 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-05 21:20:51 +0000 |
commit | 0ec418f043b946134bee1a37c1dde1cc987579df (patch) | |
tree | 840251b37d92766a4b634fa0881372d3f0eddbf0 /fxbarcode/oned/BC_OneDimWriter.h | |
parent | 32f2087020642661e12b05c1cfba02ca32c04ee4 (diff) | |
download | pdfium-0ec418f043b946134bee1a37c1dde1cc987579df.tar.xz |
Represent 1D barcodes with CFX_PathData internally.
Change-Id: If90483a8fee2e3a5cd90e7fe4600ff98b2703e5d
Reviewed-on: https://pdfium-review.googlesource.com/5010
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OneDimWriter.h')
-rw-r--r-- | fxbarcode/oned/BC_OneDimWriter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OneDimWriter.h b/fxbarcode/oned/BC_OneDimWriter.h index f1cbcf23df..3bd1b611c6 100644 --- a/fxbarcode/oned/BC_OneDimWriter.h +++ b/fxbarcode/oned/BC_OneDimWriter.h @@ -8,13 +8,14 @@ #define FXBARCODE_ONED_BC_ONEDIMWRITER_H_ #include <memory> +#include <vector> #include "core/fxge/cfx_renderdevice.h" #include "fxbarcode/BC_Library.h" #include "fxbarcode/BC_Writer.h" -class CBC_CommonBitMatrix; class CFX_Font; +class CFX_PathData; class CFX_RenderDevice; class CBC_OneDimWriter : public CBC_Writer { @@ -80,6 +81,7 @@ class CBC_OneDimWriter : public CBC_Writer { int32_t& e); wchar_t Upper(wchar_t ch); + void RenderVerticalBars(int32_t outputX, int32_t width, int32_t height); bool m_bPrintChecksum; int32_t m_iDataLenth; @@ -92,7 +94,7 @@ class CBC_OneDimWriter : public CBC_Writer { int32_t m_iContentLen; bool m_bLeftPadding; bool m_bRightPadding; - std::unique_ptr<CBC_CommonBitMatrix> m_output; + std::vector<CFX_PathData> m_output; int32_t m_barWidth; int32_t m_multiple; float m_outputHScale; |