-
EAN128()
EAN128()
Default constructor
-
SetXResolution
void
SetXResolution
(int
xres);
The function sets the horizontal resolution of the output device.
Parameters:
xres
[in] - The horizontal resolution of the output device.
-
SetYResolution
void
SetYResolution
(int
yres);
The function sets the vertical resolution of the output device.
Parameters:
yres
[in] - The vertical resolution of the output device.
-
SetOneModuleWidth
void
SetOneModuleWidth
(float
fWidth);
The function sets the width of one module in the barcode (in millimiters).
According to the standart the width can not be less than 0.191 millimiters.
Parameters:
fWidth
[in] - The width of one module, in millimiters.
-
GetOneModuleWidth
float
GetOneModuleWidth();
The function returns the width of one module in the barcode.
-
Reset
void
Reset
();
The function resets the internal list of barcode pieces. The piece
here means a part of the barcode string separated by FNC1 control
code.
-
AddPiece
void
AddPiece
(LPCTSTRpszPiece);
The function adds one piece to the internal list of pieces.
Parameters:
pszPiece
[in] - The pointer to the piece string.
-
Draw
void
Draw
(
HDC
hdc,
int
x0,
int
y0,
int
Height,
COLORREF
Color
);
The function draws the barcode using the set of previously added pieces as data.
Parameters:
hdc
[in] - The handle of device context where the barcode is
drawn.
x0
[in] - The horizontal origin of the barcode.
y0
[in] - The vertical origin of the barcode.
Height
[in] - The height of the barcode, in millimiters.
Color
[in] - The color of the drawn barcode.
-
SetLeadIn
void
SetLeadIn
(int
nModules);
The function sets the width of the LeadIn blank field before
barcode. The width is set in modules.
Parameters:
nModules
[in] - The number of modules in the LeadIn
width.
-
SetLeadOut
void
SetLeadOut
(int
nModules);
The function sets the width of the LeadOut blank field after
barcode. The width is set in modules.
Parameters:
nModules
[in] - The number of modules in the LeadOut
width.
-
GetMetricsDescription
CString
GetMetricsDescription
();
Return value:
The function returns the description of the barcode for debug purposes.
-
GetLengthInModules
int
GetLengthInModules
();
Return value:
The function returns the total length (in modules) of the barcode.
-
SetLeadInAndLeadOutFlag
void
SetLeadInAndLeadOutFlag
(BOOL
bDrawLeadInAndLeadOut);
Parameters:
bDrawLeadInAndLeadOut
[in] - The flag sets whether to draw or not the LeadIn
and LeadOut fileds.
-
GetLeadInAndLeadOutFlag
BOOL
GetLeadInAndLeadOutFlag
();
Return value:
The function returns the value of an internal flag which determines whether LeadIn
and LeadOut fileds are drawn.