Functions | |||||
| LONG | BCGetBkMode (t_BarCode* pBarCode) | ||||
Gets current background drawing mode. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetBkMode (t_BarCode* pBarCode, LONG nMode) | ||||
Sets background drawing mode. Specifies whether the barcode background should be transparent or opaque. If set to transparent, no background color is used.
| |||||
| LONG | BCGetBearerBarWidth (t_BarCode* pBarCode) | ||||
| Gets the current width of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 for the default minimum bearer bar width or a value > 0. The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure.
| |||||
| ERRCODE | BCSetBearerBarWidth (t_BarCode* pBarCode, LONG nBearerWidth) | ||||
| Sets the width of the bearer bars [1/1000 mm]. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 (for the default minimum bearer bar of 2X) or to a value > 0. The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). The rule for the minimum valid quiet zone (left/right) is 10X + bearer bar width (>= 2X). \param[in] pBarCode Pointer to barcode structure. \param[in] nBearerWidth The width of the bearer bars in 1/1000 mm or -1 if the default minimum bearer bar width should be used.
| |||||
| e_BearerBar | BCGetBearerBarType (t_BarCode* pBarCode) | ||||
| Gets the current type of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 (for the default minimum bearer bar width) or a value > 0. The vertical bearer bar is only displayed if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure.
| |||||
| ERRCODE | BCSetBearerBarType (t_BarCode* pBarCode, e_BearerBar eType) | ||||
| Sets the type of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 for the default minimum bearer bar width or a value > 0. The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure. \param[in] eType The type of bearer bar.
| |||||
| BOOL | BCGetMirror (t_BarCode* pBarCode) | ||||
Gets if barcode is drawn mirrored (Windows only). Returns currently adjusted value.
| |||||
| ERRCODE | BCSetMirror (t_BarCode* pBarCode, BOOL bMirror) | ||||
Sets if barcode is drawn mirrored (Windows only). Mirrors barcode. Ideal for printing barcodes on transparent films. Used in pre-press applications.
| |||||
| LONG | BCGetNotchHeight (t_BarCode* pBarCode) | ||||
Gets the current additional length of the synchronization bars (notches). Returns currently adjusted value.
| |||||
| ERRCODE | BCSetNotchHeight (t_BarCode* pBarCode, LONG nHeight) | ||||
Sets the additional length of the synchronization bars (notches). The term "notch" describes the synchronization bars used in some symbologies (like EAN, UPC, JAN, ...). These notches are a little bit longer than normal bars. The original length of these synchronization bars is determined by TBarCode automatically. Use this function to specify an additional length of these bars.
| |||||
| e_Degree | BCGetRotation (t_BarCode* pBarCode) | ||||
Gets the current rotation of the barcode. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetRotation (t_BarCode* pBarCode, e_Degree eRotation) | ||||
Sets the rotation of the barcode (counter-clockwise). Rotates the barcode in 90° steps counter-clockwise. If you experience problems with the human readable text, make sure a suitable TrueType font is selected (the selected font must be support rotations).
| |||||
| e_BarShape | BCGetBarShape (t_BarCode* pBarCode) | ||||
Gets the current bar shape of the barcode. Returns currently adjusted value.
| |||||
| e_BarShape | BCGetDefaultShapeForBCType (t_BarCode* pBarCode) | ||||
Gets the default bar shape for current barcode type. Returns default value.
| |||||
| LPCSTR | BCGetBarShape_ImageFileNameA (t_BarCode* pBarCode) | ||||
Gets the file name used for drawing image shapes. Returns currently adjusted value.
| |||||
| LPCWSTR | BCGetBarShape_ImageFileNameW (t_BarCode* pBarCode) | ||||
Gets the file name used for drawing image shapes. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetBarShapeA (t_BarCode* pBarCode, e_BarShape eShape, LPCSTR szImageFile) | ||||
Sets the bar shape of the barcode.
| |||||
| ERRCODE | BCSetBarShapeW (t_BarCode* pBarCode, e_BarShape eShape, LPCWSTR szImageFile) | ||||
Sets the bar shape of the barcode.
| |||||
|
Gets the current bar shape of the barcode. Returns currently adjusted value.
| eBarShape_Default | Draw bars in the barcode type's default shape. |
| e_BarShape | Bar Shape ----------------------------------------------------------------------------. |
|
Gets the file name used for drawing image shapes. Returns currently adjusted value.
| NULL | No Image file name set. |
| LPCSTR | The name of the image file used for drawing image shapes. ----------------------------------------------------------------------------. |
|
Gets the file name used for drawing image shapes. Returns currently adjusted value.
| NULL | No Image file name set. |
| LPCSTR | The name of the image file used for drawing image shapes. ----------------------------------------------------------------------------. |
|
Gets the current type of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 (for the default minimum bearer bar width) or a value > 0.
The vertical bearer bar is only displayed if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure.
|
Gets the current width of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 for the default minimum bearer bar width or a value > 0.
The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure.
|
Gets current background drawing mode. Returns currently adjusted value.
| 1 | Transparent |
| 2 | Opaque (background is filled with background color). This is the default. ----------------------------------------------------------------------------. |
|
Gets the default bar shape for current barcode type. Returns default value.
| e_BarShape | Bar Shape ----------------------------------------------------------------------------. |
|
Gets if barcode is drawn mirrored (Windows only). Returns currently adjusted value.
| TRUE | barcode will be mirrored |
| FALSE | barcode will be drawn normally. This is the default ----------------------------------------------------------------------------. |
|
Gets the current additional length of the synchronization bars (notches). Returns currently adjusted value.
| -1 | No value set. This is the default |
| LONG | Otherwise [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets the current rotation of the barcode. Returns currently adjusted value.
| deg0 | No Rotation. This is the default |
| e_Degree | Rotation (counter-clockwise) ----------------------------------------------------------------------------. |
|
Sets the bar shape of the barcode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the bar shape of the barcode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the type of the bearer bars. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 for the default minimum bearer bar width or a value > 0.
The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable). \param[in] pBarCode Pointer to barcode structure. \param[in] eType The type of bearer bar.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets the width of the bearer bars [1/1000 mm]. By default, bearer bars are deactivated (eBearerBar_None). To activate bearer bars the bearer bar type has to be set to eBearerBar_TopAndBottom or eBearerBar_Rectangle. The bearer bar width has to be set to -1 (for the default minimum bearer bar of 2X) or to a value > 0.
The vertical bearer bar is only displayed, if you have set a quiet zone at left and right >= 12 modules (the quiet zone is necessary to keep the bar code readable).
The rule for the minimum valid quiet zone (left/right) is 10X + bearer bar width (>= 2X). \param[in] pBarCode Pointer to barcode structure. \param[in] nBearerWidth The width of the bearer bars in 1/1000 mm or -1 if the default minimum bearer bar width should be used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets background drawing mode. Specifies whether the barcode background should be transparent or opaque. If set to transparent, no background color is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets if barcode is drawn mirrored (Windows only). Mirrors barcode. Ideal for printing barcodes on transparent films. Used in pre-press applications.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the additional length of the synchronization bars (notches). The term "notch" describes the synchronization bars used in some symbologies (like EAN, UPC, JAN, ...). These notches are a little bit longer than normal bars. The original length of these synchronization bars is determined by TBarCode automatically. Use this function to specify an additional length of these bars.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the rotation of the barcode (counter-clockwise). Rotates the barcode in 90° steps counter-clockwise. If you experience problems with the human readable text, make sure a suitable TrueType font is selected (the selected font must be support rotations).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
| © 2019 All rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Sat Jul 13 03:16:06 2019 for TBarCode Library 11 with doxygen 1.1.5 |