-
EAN8()
EAN8()
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.
-
SetNumber
BOOL
SetNumber
(LPCTSTR
pszNumber);
The function sets the number which is drawn as the barcode.
Parameters:
pszNumber
[in] - This is the number (7 or 8 digits) which is
drawn as the barcode.
Return value:
This function returns
TRUE
if it could recognize passed parameters and
FALSE
if it failed.
-
DrawBarCode
void
DrawBarCode
(HDC
dc,int
x0,int
y0);
The function draws the barcode.
Parameters:
dc
[in] - The output device context.
x0
[in] - This is the horizontal offset from the origin,
left edge of barcode. The offset is measured in logical device units.
y0
[in] - This is the vertical offset from the origin, top
edge of barcode. The offset is measured in logical device units.
-
SetZoomFactor
void
SetZoomFactor
(double
factor);
The function sets the zoom factor of the barcode. According to the standart it
can be from 0.8 to 2.0.
Parameters:
factor
[in] - The zoom factor.
-
GetZoomFactor
double
GetZoomFactor
();
Return value:
The function returns the value of the zoom factor.
-
SetLeadInAndLeadOutFlag
void
SetLeadInAndLeadOutFlag
(BOOL
bLeadInAndLeadOutFlag);
The function sets the flag of leadings. If the flag is
TRUE
then the
LeadIn
and
LeadOut
blanks are drawn.
Parameters:
bLeadInAndLeadOutFlag
[in] - The flag's value,TRUE
or
FALSE.
-
GetLeadInAndLeadOutFlag
BOOL
GetLeadInAndLeadOutFlag
();
Return value:
The function returns the flag of the
LeadIn
and
LeadOut
drawing.
-
SetEdgeFlag
void
SetEdgeFlag
(BOOL
bEdgeFlag);
The function sets the flag of the bottom edges drawing. If the flag is
TRUE
then the edges are drawn.
Parameters:
bEdgeFlag
[in] - The flag's value,TRUE
or
FALSE.
-
GetEdgeFlag
BOOL
GetEdgeFlag
();
Return value:
The function returns the flag of the edges' drawing.
-
SetDrawTextFlag
void
SetDrawTextFlag
(BOOL
bDrawTextFlag);
The function sets the flag of text drawing. If the flag is
TRUE
then the numbers (main and addon) are drawn.
Parameters:
bDrawTextFlag
[in] - The flag's value,TRUE
or
FALSE.
-
GetDrawTextFlag
BOOL
GetDrawTextFlag
();
Return value:
The function returns the flag of text' drawing.
-
SetBackgroundFlag
void
SetBackgroundFlag
(BOOL
bBackgroundFlag);
The function sets the flag of background drawing. If the flag is
TRUE
then the background behind barcode is drawn.
Parameters:
bBackgroundFlag
[in] - The flag's value,TRUE
or
FALSE.
-
GetBackgroundFlag
BOOL
GetBackgroundFlag
();
Return value:
The function returns the flag of background drawing.
-
SetForegroundColor
void
SetForegroundColor
(COLORREF
color);
The function sets the color of the barcode's foreground. The color can
be calculated using
RGB()
macro.
Parameters:
color
[in] - The color.
-
GetForegroundColor
COLORREF
GetForegroundColor
();
Return value:
The function returns the color of the barcode's foreground.
-
SetBackgroundColor
void
SetBackgroundColor
(COLORREF
color);
The function sets the color of the barcode's background, if it is drawn. The
color can be calculated using
RGB()
macro.
Parameters:
color
[in] - The color.
-
GetBackgroundColor
COLORREF
GetBackgroundColor
();
Return value:
The function returns the color of the barcode's background.
-
SetExactSymbolHeight
void
SetExactSymbolHeight
(double
height);
The function sets the exact height of the barcode. It does not meet the
standart, but often it is a useful feature.
Parameters:
height
[in] - The height (in millimiters).
-
GetExactSymbolHeight
double
GetExactSymbolHeight
();
Return value:
The function returns the exact height of the barcode, if it has been set.