Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BC_Writer.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXBARCODE_BC_WRITER_H_
8#define FXBARCODE_BC_WRITER_H_
9
10#include "core/fxge/dib/fx_dib.h"
11#include "fxbarcode/BC_Library.h"
12
14 public:
16 virtual ~CBC_Writer();
17
18 void SetCharEncoding(BC_CHAR_ENCODING encoding);
19 bool SetModuleHeight(int32_t moduleHeight);
20 bool SetModuleWidth(int32_t moduleWidth);
21 void SetHeight(int32_t height);
22 void SetWidth(int32_t width);
23
24 virtual void SetTextLocation(BC_TEXT_LOC location);
25 virtual bool SetWideNarrowRatio(int8_t ratio);
26 virtual bool SetStartChar(char start);
27 virtual bool SetEndChar(char end);
28 virtual bool SetErrorCorrectionLevel(int32_t level);
29
30 protected:
31 static const FX_ARGB kBarColor = 0xff000000;
32 static const FX_ARGB kBackgroundColor = 0xffffffff;
33
34 int32_t m_ModuleHeight = 1;
35 int32_t m_ModuleWidth = 1;
36 int32_t m_Height = 320;
37 int32_t m_Width = 640;
40};
41
42#endif // FXBARCODE_BC_WRITER_H_
BC_TEXT_LOC
Definition BC_Library.h:12
BC_CHAR_ENCODING
Definition BC_Library.h:20
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)
int32_t m_Width
Definition BC_Writer.h:37
void SetCharEncoding(BC_CHAR_ENCODING encoding)
Definition BC_Writer.cpp:13
void SetWidth(int32_t width)
Definition BC_Writer.cpp:37
bool SetModuleWidth(int32_t moduleWidth)
Definition BC_Writer.cpp:25
virtual bool SetErrorCorrectionLevel(int32_t level)
Definition BC_Writer.cpp:55
int32_t m_Height
Definition BC_Writer.h:36
virtual bool SetEndChar(char end)
Definition BC_Writer.cpp:51
virtual bool SetStartChar(char start)
Definition BC_Writer.cpp:47
FXDIB_Format m_colorSpace
Definition BC_Writer.h:38
bool SetModuleHeight(int32_t moduleHeight)
Definition BC_Writer.cpp:17
int32_t m_ModuleHeight
Definition BC_Writer.h:34
virtual ~CBC_Writer()
static const FX_ARGB kBackgroundColor
Definition BC_Writer.h:32
virtual bool SetWideNarrowRatio(int8_t ratio)
Definition BC_Writer.cpp:43
BC_CHAR_ENCODING m_CharEncoding
Definition BC_Writer.h:39
void SetHeight(int32_t height)
Definition BC_Writer.cpp:33
int32_t m_ModuleWidth
Definition BC_Writer.h:35
virtual void SetTextLocation(BC_TEXT_LOC location)
Definition BC_Writer.cpp:41
static const FX_ARGB kBarColor
Definition BC_Writer.h:31
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)
Definition cfx_path.cpp:309
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)
FXDIB_Format
Definition fx_dib.h:19
static constexpr CFX_FillRenderOptions EvenOddOptions()
static constexpr CFX_FillRenderOptions WindingOptions()