UniPRT 软件开发工具包 v1.0.0.0-DLL (C++)
 
载入中...
搜索中...
未找到
LabelMakerSDK.cpp 文件参考
#include "pch.h"
#include "framework.h"
#include "LabelMakerSDK.h"
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include "Label_tspl.h"
#include "Shapes_tspl.h"
#include "Text_tspl.h"
#include "Barcode1D_tspl.h"
#include "BcdAztec_tspl.h"
#include "BcdDatamatrix_tspl.h"
#include "BcdMaxicode_tspl.h"
#include "BcdPdf417_tspl.h"
#include "BcdQRCode_tspl.h"
#include "cRfidWrite_tspl.h"
#include "Coordinate.h"
LabelMakerSDK.cpp 的引用(Include)关系图:

宏定义

#define TSPL   0
 
#define PGL   1
 
#define UINT32   unsigned int
 
#define DLLEXINT   extern "C" __declspec(dllexport) int __stdcall
 
#define DLLEXBOOL   extern "C" __declspec(dllexport) bool __stdcall
 
#define DLLEXUINT32   extern "C" __declspec(dllexport) UINT32 __stdcall
 
#define DLLEXVOID   extern "C" __declspec(dllexport) void __stdcall
 
#define DLLEXSHORT   extern "C" __declspec(dllexport) short __stdcall
 
#define DLLEXPBYTE   extern "C" __declspec(dllexport) byte* __stdcall
 
#define DLLEXSTRING   extern "C" __declspec(dllexport) const char* __stdcall
 
#define DLLEXPVOID   extern "C" __declspec(dllexport) void* __stdcall
 
#define NON_USED   -1
 

类型定义

typedef Label_tspl LabelType
 
typedef Text_tspl TextType
 
typedef MaxicodeBarcode_tspl MexiCodeBarcodeType
 
typedef Pdf417Barcode_tspl Pdf417BarcodeType
 
typedef DataMatrixBarcode_tspl DataMatrixBarcodeType
 
typedef AztecBarcode_tspl AztecBarcodeType
 
typedef QRBarcode_tspl QRBarcodeType
 
typedef cRfidWrite_tspl RfidWriteType
 
typedef Line_tspl LineType
 
typedef Box_tspl BoxType
 
typedef Barcode1D_tspl Barcode1DType
 

枚举

enum  { _MaxicodeMsgStructured = 0 , _MaxicodeMsgStructuredOpenSystemStandard , _MaxicodeMsg }
 

函数

DLLEXVOID CreateLabel (int iPrintLanguageTyp, std::string LabelName, float dotsPerUnit, ScaleEnum unit)
 建立标签。
 
DLLEXPVOID CreateTexts (float x_start, float y_start, float fontsize_x, float fontsize_y, std::string data, ScaleEnum scale, FontSizeUnitsEnum FontSizeUnit, FontStyleEnum FontStyle, AlignEnum Alignment, std::string fontName, int rotation)
 建立文字标签。
 
DLLEXPVOID CreateBarcode1D (float start_x, float start_y, std::string content, ScaleEnum scale, float narrowBar, float wideBar, float Height, BarcodeTypeEnum_1D BcdTyp, bool PrintHumanReadable, RotateEnum rotation, bool PdfLocTop)
 在标签中创建一维条形码。
 
DLLEXPVOID CreateLines (float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
 在标签中创建线条。
 
DLLEXPVOID CreateBoxs (float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
 在标签中创建框。
 
DLLEXPVOID CreateMaxicodeBarcodes (int iMaxicodeTyp, MaxicodeModeEnum mode, std::string postalCode, std::string countryCode, std::string serviceClass, std::string remainingMsg, std::string year, std::string primaryMsg, float start_x, float start_y, ScaleEnum scale, bool ZipperPattern, RotateEnum rotation)
 在标签中创建 Maxicode 条形码。
 
DLLEXPVOID CreatePdf417Bcodes (float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, float ydim, Pdf417ErrCorrectionEnum ErrorCorrection, int row, int col, RotateEnum rotation)
 在标签中创建一维条形码。
 
DLLEXPVOID CreateAztecBarcodes (float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, AztecCodeTypeEnum CodeType, int iFixedErrCorrection, int iLayers, RotateEnum rotation)
 在标签中创建 aztec 条形码。
 
DLLEXPVOID CreateDataMatrixBarcodes (float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, RotateEnum Rotation, bool UseRectangle, std::string MatrixMultiLine, char CtrlChar1, char CtrlChar2, int row, int col)
 在标签中创建 data matrix 条形码。
 
DLLEXPVOID CreateQRBarcodes (float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, QRCodeMaskEnum Mask, std::vector< std::tuple< QRCodeManualEncodingEnum, std::string > > *dataManuallyEncoded, QRCodeErrorCorrectionEnum errEnum, QRCodeModelEnum modelEnum, RotateEnum rotation)
 在标签中创建 QR 条形码。
 
std::string ToHexString (const std::string &input)
 
DLLEXPVOID CreateRfidEncode (unsigned int a32BitField, unsigned int a16BitField, std::string a6CharAsciiString, RfidMemBlockEnum MemBlock, int iOffsetFromStart, std::string _10BytesUserData, std::string _4BytesHexUserData, RfidPasswordTypeEnum PasswordEnum, std::string Password)
 在标签中创建 RFID。
 
DLLEXVOID LabelToString (std::string &str)
 使用 TSPL 或 PGL 创建标签。
 
DLLEXVOID CloseLabel ()
 释放资源。
 

变量

CLabelMakerSDKApp theApp
 
LabelTypegpLabel = nullptr
 
TextTypegpTextType = nullptr
 
MexiCodeBarcodeTypegpMexiCodeBarcodeType = nullptr
 
Pdf417BarcodeTypegpPdf417BarcodeType = nullptr
 
DataMatrixBarcodeTypegpDataMatrixBarcodeType = nullptr
 
AztecBarcodeTypegpAztecBarcodeType = nullptr
 
QRBarcodeTypegpQRBarcodeType = nullptr
 
RfidWriteTypegpRfidWriteType = nullptr
 
LineTypegpLineType = nullptr
 
BoxTypegpBoxType = nullptr
 
Barcode1DTypegpBarcode1DType = nullptr
 
PrintResolution * gpPrinterResolution = nullptr
 
Ruler * gpRuler = nullptr
 
CellRect * gpCellRect = nullptr
 
CellSquare * gpCellSquare = nullptr
 
std::vector< void * > ObjectsPtr
 
std::vector< void * > ObjRulerPtr
 
std::vector< void * > ObjStartPtr
 
std::vector< void * > ObjEndPtr
 
std::vector< void * > ObjCellSquarePtr
 
std::vector< void * > ObjCellRectPtr
 
std::vector< void * > ObjTextItemPtr
 
int giPrintLanguageTyp = 0
 

宏定义说明

◆ DLLEXBOOL

#define DLLEXBOOL   extern "C" __declspec(dllexport) bool __stdcall

◆ DLLEXINT

#define DLLEXINT   extern "C" __declspec(dllexport) int __stdcall

◆ DLLEXPBYTE

#define DLLEXPBYTE   extern "C" __declspec(dllexport) byte* __stdcall

◆ DLLEXPVOID

#define DLLEXPVOID   extern "C" __declspec(dllexport) void* __stdcall

◆ DLLEXSHORT

#define DLLEXSHORT   extern "C" __declspec(dllexport) short __stdcall

◆ DLLEXSTRING

#define DLLEXSTRING   extern "C" __declspec(dllexport) const char* __stdcall

◆ DLLEXUINT32

#define DLLEXUINT32   extern "C" __declspec(dllexport) UINT32 __stdcall

◆ DLLEXVOID

#define DLLEXVOID   extern "C" __declspec(dllexport) void __stdcall

◆ NON_USED

#define NON_USED   -1

◆ PGL

#define PGL   1

◆ TSPL

#define TSPL   0

◆ UINT32

#define UINT32   unsigned int

类型定义说明

◆ AztecBarcodeType

typedef AztecBarcode_tspl AztecBarcodeType

◆ Barcode1DType

typedef Barcode1D_tspl Barcode1DType

◆ BoxType

typedef Box_tspl BoxType

◆ DataMatrixBarcodeType

typedef DataMatrixBarcode_tspl DataMatrixBarcodeType

◆ LabelType

typedef Label_tspl LabelType

◆ LineType

typedef Line_tspl LineType

◆ MexiCodeBarcodeType

typedef MaxicodeBarcode_tspl MexiCodeBarcodeType

◆ Pdf417BarcodeType

typedef Pdf417Barcode_tspl Pdf417BarcodeType

◆ QRBarcodeType

typedef QRBarcode_tspl QRBarcodeType

◆ RfidWriteType

typedef cRfidWrite_tspl RfidWriteType

◆ TextType

typedef Text_tspl TextType

枚举类型说明

◆ anonymous enum

anonymous enum
枚举值
_MaxicodeMsgStructured 
_MaxicodeMsgStructuredOpenSystemStandard 
_MaxicodeMsg 

函数说明

◆ CloseLabel()

DLLEXVOID CloseLabel ( )

释放资源。

返回
void
程序代码
DLLEXVOID CloseLabel()
释放资源。
Definition LabelMakerSDK.cpp:2238

◆ CreateAztecBarcodes()

DLLEXPVOID CreateAztecBarcodes ( float start_x,
float start_y,
std::string content,
ScaleEnum scale,
float xdim,
AztecCodeTypeEnum CodeType,
int iFixedErrCorrection,
int iLayers,
RotateEnum rotation )

在标签中创建 aztec 条形码。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 設定 x 座標的單元格大小
[in]CodeType: 设置代码类型(例如 AztecCodeTypeEnum::Compact)
[in]iFixedErrCorrection: 设置固定错误更正(例如 AztecCodeTypeEnum::FixedErrCorrection)
[in]iLayers: 设置层数
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
void
程序代码
CreateAztecBarcodes(0.25, 2.25f, "Mr. AirTraveler, seat A, flight 200", ScaleEnum::Inch, (float)0.025, AztecCodeTypeEnum::Compact, NON_USED, 4, RotateEnum::None);
DLLEXPVOID CreateAztecBarcodes(float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, AztecCodeTypeEnum CodeType, int iFixedErrCorrection, int iLayers, RotateEnum rotation)
在标签中创建 aztec 条形码。
Definition LabelMakerSDK.cpp:1423
#define NON_USED
Definition LabelMakerSDK.cpp:187

◆ CreateBarcode1D()

DLLEXPVOID CreateBarcode1D ( float start_x,
float start_y,
std::string content,
ScaleEnum scale,
float narrowBar,
float wideBar,
float Height,
BarcodeTypeEnum_1D BcdTyp,
bool PrintHumanReadable,
RotateEnum rotation,
bool PdfLocTop )

在标签中创建一维条形码。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]narrowBar: 窄条宽度
[in]wideBar: 宽条宽度
[in]Height: 设定高度
[in]BcdTyp: 设置条形码类型(例如 BarcodeTypeEnum_1D::Code_128)
[in]PrintHumanReadable: 设置列印人眼可读的标志
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]PdfLocTop: 设置一个标志将人眼可读的数据打印在条形码的上方。(默认值为下方)
返回
void
程序代码
CreateBarcode1D(0.5, 1.0 + 1.5 + (float)1 / 4 + 1.2, "Code 128", ScaleEnum::Inch, 0.015, 0.015 * 4.1, 1.2, BarcodeTypeEnum_1D::Code_128,
true, RotateEnum::None, false);
DLLEXPVOID CreateBarcode1D(float start_x, float start_y, std::string content, ScaleEnum scale, float narrowBar, float wideBar, float Height, BarcodeTypeEnum_1D BcdTyp, bool PrintHumanReadable, RotateEnum rotation, bool PdfLocTop)
在标签中创建一维条形码。
Definition LabelMakerSDK.cpp:532

◆ CreateBoxs()

DLLEXPVOID CreateBoxs ( float start_x,
float start_y,
float end_x,
float end_y,
float lineThickness,
ScaleEnum scale )

在标签中创建框。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]end_x: X 坐标的终点
[in]end_y: Y 坐标的终点
[in]lineThickness: 设置线条粗细
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
void
程序代码
CreateBoxs(0.5f, 1.25f, 3.5f, 2.25f, (float)1 / 16, ScaleEnum::Inch);
DLLEXPVOID CreateBoxs(float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
在标签中创建框。
Definition LabelMakerSDK.cpp:851

◆ CreateDataMatrixBarcodes()

DLLEXPVOID CreateDataMatrixBarcodes ( float start_x,
float start_y,
std::string content,
ScaleEnum scale,
float xdim,
RotateEnum Rotation,
bool UseRectangle,
std::string MatrixMultiLine,
char CtrlChar1,
char CtrlChar2,
int row,
int col )

在标签中创建 data matrix 条形码。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 设定 x 坐标的单元格大小
[in]Rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]UseRectangle: 设置标志以使用矩形
[in]MatrixMultiLine: 设置多行字符串
[in]rotationCtrlChar1: 设置 CtrlChar1
[in]rotationCtrlChar2: 设置 CtrlChar1
[in]row: 设定行数以限制条形码的高度
[in]col: 设定列数以限制条形码的宽度
返回
void
程序代码
CreateDataMatrixBarcodes(2.25, 0.25, "Line 1 DataMatrix", ScaleEnum::Inch, NON_USED, RotateEnum::None, false, "Line 2 content/r/nLine 3 content", 0x0D, 0x0A, 0, 0);
DLLEXPVOID CreateDataMatrixBarcodes(float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, RotateEnum Rotation, bool UseRectangle, std::string MatrixMultiLine, char CtrlChar1, char CtrlChar2, int row, int col)
在标签中创建 data matrix 条形码。
Definition LabelMakerSDK.cpp:1626

◆ CreateLabel()

DLLEXVOID CreateLabel ( int iPrintLanguageTyp,
std::string LabelName,
float dotsPerUnit,
ScaleEnum unit )

建立标签。

参数
[in]iPrintLanguageTyp: 设定 TSPL 或 PGL
[in]LabelName: 设定 TSPL 或 PGL
[in]dotsPerUnit: 设定 DPI (203/300/600)
[in]unit: 单位设定 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
void
程序代码
CreateLabel(TSPL, "SimpleLabel", 300, ScaleEnum::Inch);
DLLEXVOID CreateLabel(int iPrintLanguageTyp, std::string LabelName, float dotsPerUnit, ScaleEnum unit)
建立标签。
Definition LabelMakerSDK.cpp:239
#define TSPL
Definition LabelMakerSDK.cpp:41

◆ CreateLines()

DLLEXPVOID CreateLines ( float start_x,
float start_y,
float end_x,
float end_y,
float lineThickness,
ScaleEnum scale )

在标签中创建线条。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]end_x: X 坐标的终点
[in]end_y: Y 坐标的终点
[in]lineThickness: 设置线条粗细
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
void
程序代码
CreateLines(2.5f, (float)1/16, 2.5f, 1.0f, (float)1/32, ScaleEnum::Inch);
DLLEXPVOID CreateLines(float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
在标签中创建线条。
Definition LabelMakerSDK.cpp:683

◆ CreateMaxicodeBarcodes()

DLLEXPVOID CreateMaxicodeBarcodes ( int iMaxicodeTyp,
MaxicodeModeEnum mode,
std::string postalCode,
std::string countryCode,
std::string serviceClass,
std::string remainingMsg,
std::string year,
std::string primaryMsg,
float start_x,
float start_y,
ScaleEnum scale,
bool ZipperPattern,
RotateEnum rotation )

在标签中创建 Maxicode 条形码。

参数
[in]iMaxicodeTyp: 选择 MaxiCode 类型(例如 _MaxicodeMsgStructured)
[in]mode: 设置 maxicode(例如 MaxicodeModeEnum::MODE_2
[in]postalCode: 设置邮递区编码字符串
[in]countryCode: 设置国家/地区代码字符串
[in]serviceClass: 设置服务类字符串
[in]remainingMsg: 设置剩余的消息字符串
[in]year: 设置年份字符串
[in]primaryMsg: 设置主消息字符串
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]ZipperPattern: 是否为 zipper pattern 设置标志
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
void
程序代码
CreateMaxicodeBarcodes(_MaxicodeMsgStructured, MaxicodeModeEnum::MODE_2, "902557317", "800", "200", "Maxicode Carrier Standard", "", "", 0.5, 0.5, ScaleEnum::Inch, false, RotateEnum::None);
@ _MaxicodeMsgStructured
Definition LabelMakerSDK.cpp:122
DLLEXPVOID CreateMaxicodeBarcodes(int iMaxicodeTyp, MaxicodeModeEnum mode, std::string postalCode, std::string countryCode, std::string serviceClass, std::string remainingMsg, std::string year, std::string primaryMsg, float start_x, float start_y, ScaleEnum scale, bool ZipperPattern, RotateEnum rotation)
在标签中创建 Maxicode 条形码。
Definition LabelMakerSDK.cpp:1038

◆ CreatePdf417Bcodes()

DLLEXPVOID CreatePdf417Bcodes ( float start_x,
float start_y,
std::string content,
ScaleEnum scale,
float xdim,
float ydim,
Pdf417ErrCorrectionEnum ErrorCorrection,
int row,
int col,
RotateEnum rotation )

在标签中创建一维条形码。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim设定 x 坐标的单元格大小
[in]ydim: 设定 y 坐标的单元格大小 单元格大小可以视为 PDF417 条形码行中最窄条形元素的宽度和高度。 改变最小元素的尺寸会影响条形码的整体宽度和高度。
[in]ErrorCorrection: 设置错误更正级别(例如 Pdf417ErrCorrectionEnum::LEVEL_5)
[in]row: 设定行数以限制条形码的高度
[in]col: 设定列数以限制条形码的宽度
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
void
程序代码
CreatePdf417Bcodes(0.25, 2.0, someShortText, ScaleEnum::Inch, 0.015, 0.05, Pdf417ErrCorrectionEnum::LEVEL_5, NON_USED, NON_USED, RotateEnum::None);
DLLEXPVOID CreatePdf417Bcodes(float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, float ydim, Pdf417ErrCorrectionEnum ErrorCorrection, int row, int col, RotateEnum rotation)
在标签中创建一维条形码。
Definition LabelMakerSDK.cpp:1251

◆ CreateQRBarcodes()

DLLEXPVOID CreateQRBarcodes ( float start_x,
float start_y,
std::string content,
ScaleEnum scale,
float xdim,
QRCodeMaskEnum Mask,
std::vector< std::tuple< QRCodeManualEncodingEnum, std::string > > * dataManuallyEncoded,
QRCodeErrorCorrectionEnum errEnum,
QRCodeModelEnum modelEnum,
RotateEnum rotation )

在标签中创建 QR 条形码。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 设定 x 坐标的单元格大小
[in]Mask: 设置屏蔽(例如 QRCodeMaskEnum::Mask_4)
[in]dataManuallyEncoded: 设置手动编码数据
[in]errEnu: 设置错误更正枚举(例如 QRCodeErrorCorrectionEnum::EC_15)
[in]modelEnum: 设置模型枚举(例如 QRCodeModelEnum::MODEL_1)
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
void
程序代码
CreateQRBarcodes(1.75f, 3.75f, "", ScaleEnum::Inch, 0.025f, QRCodeMaskEnum::Mask_4, dataManuallyEncoded,
(QRCodeErrorCorrectionEnum)NON_USED, (QRCodeModelEnum)NON_USED, RotateEnum::None);
DLLEXPVOID CreateQRBarcodes(float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, QRCodeMaskEnum Mask, std::vector< std::tuple< QRCodeManualEncodingEnum, std::string > > *dataManuallyEncoded, QRCodeErrorCorrectionEnum errEnum, QRCodeModelEnum modelEnum, RotateEnum rotation)
在标签中创建 QR 条形码。
Definition LabelMakerSDK.cpp:1843

◆ CreateRfidEncode()

DLLEXPVOID CreateRfidEncode ( unsigned int a32BitField,
unsigned int a16BitField,
std::string a6CharAsciiString,
RfidMemBlockEnum MemBlock,
int iOffsetFromStart,
std::string _10BytesUserData,
std::string _4BytesHexUserData,
RfidPasswordTypeEnum PasswordEnum,
std::string Password )

在标签中创建 RFID。

参数
[in]a32BitField: 设置 RFID 32 位字段
[in]a16BitField: 设置 RFID 16 位字段
[in]a6CharAsciiString: 设置 RFID 6 个字符的 ASCII 字符串
[in]MemBlock: 设置内存区块(例如 RfidMemBlockEnum::EPC)
[in]iOffsetFromStart: 设置从起始点的偏移量
[in]_10BytesUserData: 设置 RFID 10 字节字符串
[in]_4BytesHexUserData: 设置 RFID 4 字节字符串
[in]PasswordEnum: 设置密码枚举(例如 RfidPasswordTypeEnum::Lock)
[in]Password: 设置密码字符串
返回
void
程序代码
CreateRfidEncode(a32BitField, a16BitField, a6CharAsciiString, RfidMemBlockEnum::User, 2, "MyUserData", "0ABCDE0F", RfidPasswordTypeEnum::None, "");
DLLEXPVOID CreateRfidEncode(unsigned int a32BitField, unsigned int a16BitField, std::string a6CharAsciiString, RfidMemBlockEnum MemBlock, int iOffsetFromStart, std::string _10BytesUserData, std::string _4BytesHexUserData, RfidPasswordTypeEnum PasswordEnum, std::string Password)
在标签中创建 RFID。
Definition LabelMakerSDK.cpp:2045
函数调用图:

◆ CreateTexts()

DLLEXPVOID CreateTexts ( float x_start,
float y_start,
float fontsize_x,
float fontsize_y,
std::string data,
ScaleEnum scale,
FontSizeUnitsEnum FontSizeUnit,
FontStyleEnum FontStyle,
AlignEnum Alignment,
std::string fontName,
int rotation )

建立文字标签。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]fontsize_x: x 坐标的字体大小
[in]fontsize_y: Y 坐标的字体大小
[in]data: 文字内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontSizeUnit: 设定字体大小单位 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontStyle: 设定字体样式 (FontSizeUnitsEnum::Ruler/FontSizeUnitsEnum::Points/FontSizeUnitsEnum::Percent)
[in]Alignment: 设定文字对齐方式 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]fontName: 设定字体名称 (203/300/600)
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
void
程序代码
CreateTexts(2.0, 1.25 + (float)7 / 16, (float)3 / 16, (float)7 / 16, "MY MAGIC", ScaleEnum::Inch, FontSizeUnitsEnum::Ruler,
(FontStyleEnum)NON_USED, AlignEnum::Center, "93952.sf", RotateEnum::None);
DLLEXPVOID CreateTexts(float x_start, float y_start, float fontsize_x, float fontsize_y, std::string data, ScaleEnum scale, FontSizeUnitsEnum FontSizeUnit, FontStyleEnum FontStyle, AlignEnum Alignment, std::string fontName, int rotation)
建立文字标签。
Definition LabelMakerSDK.cpp:343

◆ LabelToString()

DLLEXVOID LabelToString ( std::string & str)

使用 TSPL 或 PGL 创建标签。

参数
[out]str: TSPL 或 PGL 字符串
返回
void
程序代码
LabelToString(LabelString);
DLLEXVOID LabelToString(std::string &str)
使用 TSPL 或 PGL 创建标签。
Definition LabelMakerSDK.cpp:2198

◆ ToHexString()

std::string ToHexString ( const std::string & input)
这是这个函数的调用关系图:

变量说明

◆ giPrintLanguageTyp

int giPrintLanguageTyp = 0

◆ gpAztecBarcodeType

AztecBarcodeType* gpAztecBarcodeType = nullptr

◆ gpBarcode1DType

Barcode1DType* gpBarcode1DType = nullptr

◆ gpBoxType

BoxType* gpBoxType = nullptr

◆ gpCellRect

CellRect* gpCellRect = nullptr

◆ gpCellSquare

CellSquare* gpCellSquare = nullptr

◆ gpDataMatrixBarcodeType

DataMatrixBarcodeType* gpDataMatrixBarcodeType = nullptr

◆ gpLabel

LabelType* gpLabel = nullptr

◆ gpLineType

LineType* gpLineType = nullptr

◆ gpMexiCodeBarcodeType

MexiCodeBarcodeType* gpMexiCodeBarcodeType = nullptr

◆ gpPdf417BarcodeType

Pdf417BarcodeType* gpPdf417BarcodeType = nullptr

◆ gpPrinterResolution

PrintResolution* gpPrinterResolution = nullptr

◆ gpQRBarcodeType

QRBarcodeType* gpQRBarcodeType = nullptr

◆ gpRfidWriteType

RfidWriteType* gpRfidWriteType = nullptr

◆ gpRuler

Ruler* gpRuler = nullptr

◆ gpTextType

TextType* gpTextType = nullptr

◆ ObjCellRectPtr

std::vector<void*> ObjCellRectPtr

◆ ObjCellSquarePtr

std::vector<void*> ObjCellSquarePtr

◆ ObjectsPtr

std::vector<void*> ObjectsPtr

◆ ObjEndPtr

std::vector<void*> ObjEndPtr

◆ ObjRulerPtr

std::vector<void*> ObjRulerPtr

◆ ObjStartPtr

std::vector<void*> ObjStartPtr

◆ ObjTextItemPtr

std::vector<void*> ObjTextItemPtr

◆ theApp

CLabelMakerSDKApp theApp