From 0ec418f043b946134bee1a37c1dde1cc987579df Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 5 May 2017 13:49:32 -0700 Subject: Represent 1D barcodes with CFX_PathData internally. Change-Id: If90483a8fee2e3a5cd90e7fe4600ff98b2703e5d Reviewed-on: https://pdfium-review.googlesource.com/5010 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- fxbarcode/oned/BC_OneDimWriter.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fxbarcode/oned/BC_OneDimWriter.h') 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 +#include #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 m_output; + std::vector m_output; int32_t m_barWidth; int32_t m_multiple; float m_outputHScale; -- cgit v1.2.3