UniPRT SDK v1.0.0.0-DLL (C++)
 
Loading...
Searching...
No Matches
LabelMakerSDK.cpp File Reference
#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"
Include dependency graph for LabelMakerSDK.cpp:

Macros

#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
 

Typedefs

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
 

Enumerations

enum  { _MaxicodeMsgStructured = 0 , _MaxicodeMsgStructuredOpenSystemStandard , _MaxicodeMsg }
 

Functions

DLLEXVOID CreateLabel (int iPrintLanguageTyp, std::string LabelName, float dotsPerUnit, ScaleEnum unit)
 Create a label.
 
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)
 Create texts in a Label.
 
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)
 Create barcode 1D in a Label.
 
DLLEXPVOID CreateLines (float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
 Create lines in a Label.
 
DLLEXPVOID CreateBoxs (float start_x, float start_y, float end_x, float end_y, float lineThickness, ScaleEnum scale)
 Create boxes in a Label.
 
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)
 Create Maxicode barcodes in a Label.
 
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)
 Create PDF417 barcodes in a Label.
 
DLLEXPVOID CreateAztecBarcodes (float start_x, float start_y, std::string content, ScaleEnum scale, float xdim, AztecCodeTypeEnum CodeType, int iFixedErrCorrection, int iLayers, RotateEnum rotation)
 Create aztec barcodes in a Label.
 
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)
 Create data matrix barcodes in a Label.
 
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)
 Create data QR barcodes in a Label.
 
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)
 Create RFID in a Label.
 
DLLEXVOID LabelToString (std::string &str)
 Create a label with TSPL or PGL.
 
DLLEXVOID CloseLabel ()
 Release a resource.
 

Variables

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
 

Macro Definition Documentation

◆ 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

Typedef Documentation

◆ 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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_MaxicodeMsgStructured 
_MaxicodeMsgStructuredOpenSystemStandard 
_MaxicodeMsg 

Function Documentation

◆ CloseLabel()

DLLEXVOID CloseLabel ( )

Release a resource.

Returns
void
Sample
DLLEXVOID CloseLabel()
Release a resource.
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 )

Create aztec barcodes in a Label.

Parameters
[in]start_x: start point for x coordinate
[in]start_y: start point for y coordinate
[in]content: aztec content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: set a cellsize for x coordinate
[in]CodeType: set a code type (e.g. AztecCodeTypeEnum::Compact)
[in]iFixedErrCorrection: set the FixedErrCorrection (e.g. AztecCodeTypeEnum::FixedErrCorrection)
[in]iLayers: set the layers
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
Returns
void
Sample
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)
Create aztec barcodes in a Label.
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 )

Create barcode 1D in a Label.

Parameters
[in]x_start: start point for x coordinate
[in]y_start: start point for y coordinate
[in]content: barcode 1D content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]narrowBar: set a narrow
[in]wideBar: set a wide
[in]Height: set a height
[in]BcdTyp: set a barcode type (e.g. BarcodeTypeEnum_1D::Code_128)
[in]PrintHumanReadable: a flag to set PrintHumanReadable
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]PdfLocTop: set a flag to print human-readable data above the barcode. (Default value is below)
Returns
void
Sample
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)
Create barcode 1D in a Label.
Definition LabelMakerSDK.cpp:532

◆ CreateBoxs()

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

Create boxes in a Label.

Parameters
[in]x_start: start point for x coordinate
[in]y_start: start point for y coordinate
[in]end_x: end point for x coordinate
[in]end_y: end point for y coordinate
[in]lineThickness: set a lineThickness
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
Returns
void
Sample
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)
Create boxes in a Label.
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 )

Create data matrix barcodes in a Label.

Parameters
[in]start_x: start point for x coordinate
[in]start_y: start point for y coordinate
[in]content: data matrix content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: set a cellsize for x coordinate
[in]Rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]UseRectangle: set a flag to use rectangle
[in]MatrixMultiLine: set a multiline string
[in]rotationCtrlChar1: set a CtrlChar1
[in]rotationCtrlChar2: set a CtrlChar2
[in]row: set the number of rows can be used to limit the height of the barcode.
[in]col: set the number of columns can be used to limit the width of the barcode.
Returns
void
Sample
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)
Create data matrix barcodes in a Label.
Definition LabelMakerSDK.cpp:1626

◆ CreateLabel()

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

Create a label.

Parameters
[in]iPrintLanguageTyp: select TSPL or PGL
[in]LabelName: set a label name
[in]dotsPerUnit: set DPI (203/300/600)
[in]unit: set unit (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
Returns
void
Sample
CreateLabel(TSPL, "SimpleLabel", 300, ScaleEnum::Inch);
DLLEXVOID CreateLabel(int iPrintLanguageTyp, std::string LabelName, float dotsPerUnit, ScaleEnum unit)
Create a label.
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 )

Create lines in a Label.

Parameters
[in]x_start: start point for x coordinate
[in]y_start: start point for y coordinate
[in]end_x: end point for x coordinate
[in]end_y: end point for y coordinate
[in]lineThickness: set a lineThickness
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
Returns
void
Sample
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)
Create lines in a Label.
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 )

Create Maxicode barcodes in a Label.

Parameters
[in]iMaxicodeTyp: select a maxicode type (e.g. _MaxicodeMsgStructured)
[in]mode: set a maxicode (e.g. MaxicodeModeEnum::MODE_2)
[in]postalCode: set a postal code string
[in]countryCode: set a country code string
[in]serviceClass: set a service class string
[in]remainingMsg: set a remaining message string
[in]year: set a year string
[in]primaryMsg: set a primary message string
[in]start_x: start point for x coordinate
[in]start_y: start point for y coordinate
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]ZipperPattern: set a flag for zipper pattern or not
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
Returns
void
Sample
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)
Create Maxicode barcodes in a Label.
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 )

Create PDF417 barcodes in a Label.

Parameters
[in]start_x: start point for x coordinate
[in]start_y: start point for y coordinate
[in]content: PDF417 content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: set a cellsize for x coordinate
[in]ydim: set a cellsize for y coordinate The cell size can be thought of as the width and height of the narrowest bar element within a PDF417 row. Changing the dimensions of the smallest element affects the overall width and height of the barcode.
[in]ErrorCorrection: set a error correction (e.g. Pdf417ErrCorrectionEnum::LEVEL_5)
[in]row: set the number of rows can be used to limit the height of the barcode.
[in]col: set the number of columns can be used to limit the width of the barcode.
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
Returns
void
Sample
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)
Create PDF417 barcodes in a Label.
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 )

Create data QR barcodes in a Label.

Parameters
[in]start_x: start point for x coordinate
[in]start_y: start point for y coordinate
[in]content: QR content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: set a cellsize for x coordinate
[in]Mask: set a mask (e.g. QRCodeMaskEnum::Mask_4)
[in]dataManuallyEncoded: set a dataManuallyEncoded
[in]errEnu: set an error enum (e.g. QRCodeErrorCorrectionEnum::EC_15)
[in]modelEnum: set a model enum (e.g. QRCodeModelEnumz::MODEL_1)
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
Returns
void
Sample
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)
Create data QR barcodes in a Label.
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 )

Create RFID in a Label.

Parameters
[in]a32BitField: set RFID 32 bit field
[in]a16BitField: set RFID 16 bit field
[in]a6CharAsciiString: set RFID 6 characters ASCII string
[in]MemBlock: set a memory block (e.g. RfidMemBlockEnum::EPC)
[in]iOffsetFromStart: set an offset from start
[in]_10BytesUserData: set a RFID 10 bytes string
[in]_4BytesHexUserData: set a RFID 4 bytes string
[in]PasswordEnum: set a password enum (e.g. RfidPasswordTypeEnum::Lock)
[in]Password: set a password string
Returns
void
Sample
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)
Create RFID in a Label.
Definition LabelMakerSDK.cpp:2045
Here is the call graph for this function:

◆ 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 )

Create texts in a Label.

Parameters
[in]x_start: start point for x coordinate
[in]y_start: start point for y coordinate
[in]fontsize_x: font size for x coordinate
[in]fontsize_y: font size for y coordinate
[in]data: text content
[in]scale: set a scale (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontSizeUnit: set a font size unit (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontStyle: set a font style (FontSizeUnitsEnum::Ruler/FontSizeUnitsEnum::Points/FontSizeUnitsEnum::Percent)
[in]Alignment: set a alignment for text (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]fontName: set font name
[in]rotation: set a rotation (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
Returns
void
Sample
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)
Create texts in a Label.
Definition LabelMakerSDK.cpp:343

◆ LabelToString()

DLLEXVOID LabelToString ( std::string & str)

Create a label with TSPL or PGL.

Parameters
[out]str: TSPL or PGL strings
Returns
void
Sample
LabelToString(LabelString);
DLLEXVOID LabelToString(std::string &str)
Create a label with TSPL or PGL.
Definition LabelMakerSDK.cpp:2198

◆ ToHexString()

std::string ToHexString ( const std::string & input)
Here is the caller graph for this function:

Variable Documentation

◆ 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