Compounds | |||||||
| struct | tagRECTD | ||||||
Defines | |||||||
| #define | TBARCODE_HEADER | ||||||
\file Header File for TBarCode Library. Include this header file in your modules to access the TBarCode API. In Windows: #include "tbarcode.h" #include <libTBarCode11/tbarcode.h> The TBarCode Library for Windows and TBarCode Library for UNIX have the same API except for some functions: - Functions denoted with "Windows only" are only available for Windows platforms. - Functions denoted with "UNIX only" are only available in UNIX/Linux environments.
| |||||||
| #define | TEC_CALLBACK CALLBACK | ||||||
| #define | TEC_WIN 1 | ||||||
| Defined if platform is Windows. \internal. | |||||||
| #define | TEC_WINCE 1 | ||||||
| Defined if platform is Windows CE. \internal. | |||||||
| #define | TBARCODE_VERSION "11.0.0" | ||||||
| Current TBarCode version. | |||||||
| #define | TBARCODE_11_0_0 | ||||||
| Symbol that identifies TBarCode 11.0.0. | |||||||
| #define | TECIT_STDCALL _stdcall | ||||||
| Defines calling convention. \internal. | |||||||
| #define | TBARCODEDLL_API __declspec(dllimport) | ||||||
| Exports/imports DLL interface. \internal. | |||||||
| #define | TEC_MAX_INPUT 10000 | ||||||
| #define | S_OK ((HRESULT) 0x00000000L) | ||||||
| #define | S_FALSE ((HRESULT) 0x00000001L) | ||||||
| #define | BC_USEDEFAULT -1 | ||||||
| Constant indicating a default value. Used for determining or setting the default value of most relevant parameters. | |||||||
| #define | ERRCODE LONG | ||||||
| Data type for error codes. Error code 0 indicates successful operation. | |||||||
| #define | ErrOk S_OK | ||||||
| #define | _BC_T_FUNCTIONS_ | ||||||
| #define | BCGetLibraryVersion BCGetLibraryVersionA | ||||||
| #define | BCInitLibrary BCInitLibraryA | ||||||
| #define | BCLicenseMe BCLicenseMeA | ||||||
| #define | BCGetBCList BCGetBCListA | ||||||
| #define | BCGetText BCGetTextA | ||||||
| #define | BCSetText BCSetTextA | ||||||
| #define | BCGetFormat BCGetFormatA | ||||||
| #define | BCSetFormat BCSetFormatA | ||||||
| #define | BCSetBarShape BCSetBarShapeA | ||||||
| #define | BCGetBarShape_ImageFileName BCGetBarShape_ImageFileNameA | ||||||
| #define | BCGetRatio BCGetRatioA | ||||||
| #define | BCSetRatio BCSetRatioA | ||||||
| #define | BCGetFontName BCGetFontNameA | ||||||
| #define | BCSetFontName BCSetFontNameA | ||||||
| #define | BCGetDisplayText BCGetDisplayTextA | ||||||
| #define | BCSetDisplayText BCSetDisplayTextA | ||||||
| #define | BCGetCheckDigits BCGetCheckDigitsA | ||||||
| #define | BCCalcCDExt BCCalcCDExtA | ||||||
| #define | BCGetNameFromEnum BCGetNameFromEnumA | ||||||
| #define | BCGetCDList BCGetCDListA | ||||||
| #define | BCGetModWidth BCGetModWidthA | ||||||
| #define | BCSetModWidth BCSetModWidthA | ||||||
| #define | BCCopyToClipboardEx BCCopyToClipboardExA | ||||||
| #define | BCSaveImage BCSaveImageA | ||||||
| #define | BCSaveImageEx BCSaveImageExA | ||||||
| #define | BCBitmapToFile BCBitmapToFileA | ||||||
| #define | BCBitmapToMemory BCBitmapToMemoryA | ||||||
| #define | BCPCLToFile BCPCLToFileA | ||||||
| #define | BCPCLToFileExt BCPCLToFileExtA | ||||||
| #define | BCPDFToFile BCPDFToFileA | ||||||
| #define | BCPostscriptToFile BCPostscriptToFileA | ||||||
| #define | BCGetPostscriptMacros BCGetPostscriptMacrosA | ||||||
| #define | BCSVGToFile BCSVGToFileA | ||||||
| #define | BCAIToFile BCAIToFileA | ||||||
| #define | BCGetMetaData BCGetMetaDataA | ||||||
| #define | BCGetErrorText BCGetErrorTextA | ||||||
| #define | BCGetErrorTextExt BCGetErrorTextExtA | ||||||
| #define | BCGet_PDF417_RowColRatio BCGet_PDF417_RowColRatioA | ||||||
| #define | BCSet_PDF417_RowColRatio BCSet_PDF417_RowColRatioA | ||||||
| #define | BCGet_PDF417_FileID BCGet_PDF417_FileIDA | ||||||
| #define | BCSet_PDF417_FileID BCSet_PDF417_FileIDA | ||||||
| #define | BCGet_PDF417_FileName BCGet_PDF417_FileNameA | ||||||
| #define | BCSet_PDF417_FileName BCSet_PDF417_FileNameA | ||||||
| #define | BCGet_PDF417_Sender BCGet_PDF417_SenderA | ||||||
| #define | BCSet_PDF417_Sender BCSet_PDF417_SenderA | ||||||
| #define | BCGet_PDF417_Addressee BCGet_PDF417_AddresseeA | ||||||
| #define | BCSet_PDF417_Addressee BCSet_PDF417_AddresseeA | ||||||
| #define | BCGet_MPDF417_Versions BCGet_MPDF417_VersionsA | ||||||
| #define | BCSet_Maxi_UsePreamble BCSet_Maxi_UsePreambleA | ||||||
| #define | BCGet_Maxi_PreambleDate BCGet_Maxi_PreambleDateA | ||||||
| #define | BCGet_Maxi_SCMServClass BCGet_Maxi_SCMServClassA | ||||||
| #define | BCGet_Maxi_SCMCountryCode BCGet_Maxi_SCMCountryCodeA | ||||||
| #define | BCGet_Maxi_SCMPostalCode BCGet_Maxi_SCMPostalCodeA | ||||||
| #define | BCSet_Maxi_SCM BCSet_Maxi_SCMA | ||||||
| #define | BCGetDataMatrixSizes BCGetDataMatrixSizesA | ||||||
| #define | BCGet_Aztec_FormatSpecifier BCGet_Aztec_FormatSpecifierA | ||||||
| #define | BCSet_Aztec_Format BCSet_Aztec_FormatA | ||||||
| #define | BCGet_Aztec_AppendTotal BCGet_Aztec_AppendTotalA | ||||||
| #define | BCGet_Aztec_AppendIndex BCGet_Aztec_AppendIndexA | ||||||
| #define | BCGet_Aztec_AppendMessageID BCGet_Aztec_AppendMessageIDA | ||||||
| #define | BCSet_Aztec_AppendData BCSet_Aztec_AppendDataA | ||||||
| #define | BCGetAztecSizes BCGetAztecSizesA | ||||||
| #define | BCGet_DotCode_Size BCGet_DotCode_SizeA | ||||||
| #define | BCSet_DotCode_Size BCSet_DotCode_SizeA | ||||||
| #define | BCGet_DotCode_DefaultSizeForMode BCGet_DotCode_DefaultSizeForModeA | ||||||
| #define | BCGet_DotCode_FormatSpecifier BCGet_DotCode_FormatSpecifierA | ||||||
| #define | BCSet_DotCode_Format BCSet_DotCode_FormatA | ||||||
| #define | BCGet_QR_FmtAppIndicator BCGet_QR_FmtAppIndicatorA | ||||||
| #define | BCSet_QR_FmtAppIndicator BCSet_QR_FmtAppIndicatorA | ||||||
| #define | BCCalcStructApp_Parity BCCalcStructApp_ParityA | ||||||
| #define | BCGetQRCodeVersions BCGetQRCodeVersionsA | ||||||
| #define | BCGetMQRCodeVersions BCGetMQRCodeVersionsA | ||||||
| #define | BCGetHanXinVersions BCGetHanXinVersionsA | ||||||
| #define | BCGetDefaultDataByType BCGetDefaultDataByTypeA | ||||||
| #define | fn_DrawText fn_DrawTextA | ||||||
| #define | BCGetFuncDrawText BCGetFuncDrawTextA | ||||||
| #define | BCSetFuncDrawText BCSetFuncDrawTextA | ||||||
| #define | BCSetOptions BCSetOptionsA | ||||||
| #define | BCGetOptions BCGetOptionsA | ||||||
Typedefs | |||||||
| typedef struct tag_BarCode | t_BarCode | ||||||
| Forward declaration of the internal used barcode structure. The exact layout of this structure is hidden. | |||||||
| typedef struct tagRECTD | RECTD | ||||||
| Rectangle structure for double types. | |||||||
| typedef struct tagRECTD * | LPRECTD | ||||||
| Rectangle structure for double types. | |||||||
Functions | |||||||
| ERRCODE | BCGetLibraryVersionA (INT* pMajor, INT* pMinor, INT* pRelease, INT* pRevision, LPCSTR* pszVersion, LPCSTR* pszBuildDate) | ||||||
| ERRCODE | BCGetLibraryVersionW (INT* pMajor, INT* pMinor, INT* pRelease, INT* pRevision, LPCWSTR* pszVersion, LPCWSTR* pszBuildDate) | ||||||
| typedef | ERRCODE (TEC_CALLBACK *fn_DrawRow) (VOID* customData, t_BarCode* barcode, HDC drawDC, HDC targetDC, DOUBLE x, DOUBLE y, DOUBLE width, DOUBLE height) | ||||||
| Callback-function which is called instead of drawing a barcode row. More... | |||||||
| BOOL | BCAttach () | ||||||
Initializes TBarCode for further use (Windows static library only). Required only for static library variants of TBarCode (not for DLLs). Must be called as first function.
| |||||||
| BOOL | BCAttachInstance (HINSTANCE hInstance) | ||||||
Attach library to given instance (Windows static library only). Required only for static library variants of TBarCode. Must be called as first function.
| |||||||
| BOOL | BCDetach () | ||||||
Detach library from process (Windows static library only). Required only for static library variants of TBarCode (not for DLLs). Must be called as last function.
| |||||||
| ERRCODE | BCInitLibraryA (LPCSTR szPath) | ||||||
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| |||||||
| ERRCODE | BCInitLibraryW (LPCWSTR szPath) | ||||||
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| |||||||
| ERRCODE | _BCInitLibraryT (LPCTSTR szPath) | ||||||
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| |||||||
| ERRCODE | BCDeInitLibrary () | ||||||
De-initializes TBarCode Library (UNIX and Windows CE only). Must be called before terminating the application or before unloading TBarCode Library.
| |||||||
| ERRCODE | BCAlloc (t_BarCode** pBarCode) | ||||||
Allocates and initializes barcode structure. Must be called as first function before any other call using pBarCode. This function allocates and initializes the internal barcode structure to store all parameters. It sets the pointer that you pass to this function. For each barcode you want to use simultaneously, you have to call this function to get an appropriate handle (pBarCode). \param[in, out] ppBarCode Pointer to barcode structure. Only valid if return value is ErrOk (0)
| |||||||
| ERRCODE | BCClone (t_BarCode** ppBarCodeDest, const t_BarCode* pBarCodeSrc) | ||||||
Makes a clone of an existing bar code structure. Call this function if you need a deep copy of a bar code structure. You have to call BCFree on pBarCodeDest after using in order to free the allocated resources. \param[in, out] ppBarCodeDest Pointer to destination barcode structure. \param[in] pBarCodeSrc Pointer to source barcode structure.
| |||||||
| ERRCODE | BCFree (t_BarCode* pBarCode) | ||||||
Frees barcode structure. Must be called as last function and frees all resources used by pBarCode. The pointer pBarCode must not be used after this call. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCLicenseMeA (LPCSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCSTR lpszKey, e_licProduct eProductID) | ||||||
License TBarCode. Licenses the library with the license key provided by TEC-IT. All demo-mode restrictions are removed. Licensing must take place before you draw a barcode or generate a barcode image file. After licensing the library will stay in licensed mode until it is unloaded from memory. Call this function and pass in the license key you have got after purchasing your license. You receive the license key from TEC-IT Datenverarbeitung GmbH (you can order through https://www.tec-it.com/order). The license kind, the number of licenses and the licensee string have to be passed in exactly as given, they are checked against the license key.
| |||||||
| ERRCODE | BCLicenseMeW (LPCWSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCWSTR lpszKey, e_licProduct eProductID) | ||||||
License TBarCode. Licenses the library with the license key provided by TEC-IT. All demo-mode restrictions are removed. Licensing must take place before you draw a barcode or generate a barcode image file. After licensing the library will stay in licensed mode until it is unloaded from memory. Call this function and pass in the license key you have got after purchasing your license. You receive the license key from TEC-IT Datenverarbeitung GmbH (you can order through https://www.tec-it.com/order). The license kind, the number of licenses and the licensee string have to be passed in exactly as given, they are checked against the license key.
| |||||||
| ERRCODE | BCCreate (t_BarCode* pBarCode) | ||||||
Creates the internal barcode representation. Creates the internal barcode representation depending on all barcode parameters previously set. After this call the barcode is ready for drawing or saving (e.g. with BCDraw()). Do not change barcode parameters or input data after this call.
| |||||||
| e_BarCType | BCGetBCType (t_BarCode* pBarCode) | ||||||
Gets the barcode type (symbology) currently adjusted. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSetBCType (t_BarCode* pBarCode, e_BarCType eType) | ||||||
Chooses the required barcode type (symbology). Specifies the type of the barcode to be generated (the so-called symbology). Look at the Barcode Reference to get an overview of the enumerations. The default symbology used by TBarCode is Code128. \param[in] pBarCode Pointer to barcode structure. \param[in] eType Bar-code type (barcode symbology).
| |||||||
| LPCSTR* | BCGetBCListA () | ||||||
Returns implemented barcode symbologies Returns string-array of implemented barcodes. Use this function in connection with BCGetBCCount().
| |||||||
| LPCWSTR* | BCGetBCListW () | ||||||
Returns implemented barcode symbologies Returns string-array of implemented barcodes. Use this function in connection with BCGetBCCount().
| |||||||
| LONG | BCGetBCCount () | ||||||
Returns number of implemented barcodes. Returns number of implemented barcodes. The return value specifies the size of the array returned by BCGetBCList().
| |||||||
| LPCSTR | BCGetTextA (t_BarCode* pBarCode) | ||||||
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| |||||||
| LPCWSTR | BCGetTextW (t_BarCode* pBarCode) | ||||||
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| |||||||
| ERRCODE | BCSetTextA (t_BarCode* pBarCode, LPCSTR szText, LONG nLen) | ||||||
| Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned. Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
| |||||||
| ERRCODE | BCSetTextW (t_BarCode* pBarCode, LPCWSTR szText, LONG nLen) | ||||||
| Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned. Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
| |||||||
| BOOL | BCIsTextUnicode (t_BarCode* pBarCode) | ||||||
Returns type of current input data. Determines if barcode text was passed as UNICODE string or as ASCII string.
| |||||||
| LONG | BCGetTextLen (t_BarCode* pBarCode) | ||||||
Gets length of barcode input data. Gets the length of the data set by the user.
| |||||||
| LONG | BCGetTextLenCompressed (t_BarCode* pBarCode) | ||||||
Gets length of barcode input data (after compression). Gets the length of the data to be encoded.
| |||||||
| ERRCODE | BCSetTextEBCDIC (INT nCodepage, t_BarCode* pBarCode, LPCSTR szText, LONG nLen) | ||||||
Sets barcode text (EBCDIC version). This function works the same like BCSetTextA() except that the text is specified in EBCDIC encoding and internally converted to ASCII.
| |||||||
| e_EncodingMode | BCGetEncodingMode (t_BarCode* pBarCode) | ||||||
Gets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data.
| |||||||
| ERRCODE | BCSetEncodingMode (t_BarCode* pBarCode, e_EncodingMode eMode) | ||||||
Sets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data. In dependence on whether the input data is UNICODE or single character encoded the mode has different effects. See e_EncodingMode and e_CodePage for a more detailed description.
| |||||||
| e_CodePage | BCGetCodePage (t_BarCode* pBarCode) | ||||||
Gets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page.
| |||||||
| UINT | BCGetCodePageCustom (t_BarCode* pBarCode) | ||||||
Gets the input data encoding code page. (custom value) If another than a predefined code page is used (BCGetCodePage returns eCodePage_Custom), this function returns the code page identifier.
| |||||||
| ERRCODE | BCSetCodePage (t_BarCode* pBarCode, e_CodePage eCodePage) | ||||||
| Sets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. See e_EncodingMode and e_CodePage for a more detailed description. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page as a code page identifier.
| |||||||
| ERRCODE | BCSetCodePageCustom (t_BarCode* pBarCode, UINT nCodePage) | ||||||
Sets the input data encoding code page. If another than a predefined code page shall be used that means, if the code page is set to eCodePage_Custom, this function specifies in which code page the input data is encoded. Otherwise the value returned by BCGetCodePage is used.
| |||||||
| e_Compression | BCGetCompression (t_BarCode* pBarCode) | ||||||
Returns mode of data compression for barcode content. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSetCompression (t_BarCode* pBarCode, e_Compression eCompression) | ||||||
Sets compression mode for barcode content \param[in,out] pBarCode Pointer to barcode structure. \param[in] eCompression Compression mode.
| |||||||
| LPCSTR | BCGetFormatA (t_BarCode* pBarCode) | ||||||
Gets current format string. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGetFormatW (t_BarCode* pBarCode) | ||||||
Gets current format string. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetFormatA (t_BarCode* pBarCode, LPCSTR szFormat) | ||||||
| Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily. Please refer to the Barcode Reference for more information.
| |||||||
| ERRCODE | BCSetFormatW (t_BarCode* pBarCode, LPCWSTR szFormat) | ||||||
| Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily. Please refer to the Barcode Reference for more information.
| |||||||
| BOOL | BCGetTranslateEsc (t_BarCode* pBarCode) | ||||||
Gets current state information regarding escape-sequence translation. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetTranslateEsc (t_BarCode* pBarCode, BOOL bTranslate) | ||||||
| Activates/deactivates the translation of escape-sequences. Defines if escape-sequences in the input data (e.g. " " in "123\n456") shall be translated before encoding takes place. If the translation of escape-sequences is switched off, all characters are encoded "as-is". If it is activated, escape-sequences are translated into their corresponding characters. See Barcode Reference for more information.
| |||||||
| ERRCODE | BCCheck (t_BarCode* pBarCode) | ||||||
Checks barcode input data for validity. The bar code data is validated to be encoded with the selected symbology. Adjust all bar code parameters before you call this function. If the input data is invalid (a non-zero error code was returned), you can correct the bar code data and try again. If the check was successful, do not change barcode parameters or input data anymore (before you create a bar code).
| |||||||
| LONG | BCGetMaxLenOfData (e_BarCType eType) | ||||||
Returns the number of characters for a specified barcode. Returns the exact number of characters that can be encoded with the specified barcode symbology. Returns zero if there is no specified length or an unknown barcode type was passed. \param[in] eType Barcode type.
| |||||||
| BOOL | BCGetAutoCorrect (t_BarCode* pBarCode) | ||||||
Gets auto-correct option for Code 2 of 5 interleaved. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetAutoCorrect (t_BarCode* pBarCode, BOOL bAutoCorrect) | ||||||
Sets auto-correct option for input data. If set to true TBarCode performs the following operations on the input data (before creating the bar code): - Code 39: Trim leading/trailing '*' characters (start/stop characters are added by the encoder) - ISBN-13/ISSN/ISMN: Remove '-' characters (not encoded into the bar code) - Code 2of5 Interleaved: Insert a leading zero if the number of data digits is odd (2/5 IL supports only even number of digits) - Code-128: Remove multiple occurences of leading FNC1 and all occurences of trailing FNC1 characters. - GS1-128: Remove all leading and trailing FNC1 characters (the FNC1 at first position is added by the encoder).
| |||||||
| LPCSTR | BCGetDefaultDataByTypeA (e_BarCType eBCType) | ||||||
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| |||||||
| LPCWSTR | BCGetDefaultDataByTypeW (e_BarCType eBCType) | ||||||
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| |||||||
| 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.
| |||||||
| 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.
| |||||||
| e_BarShape | BCGetDefaultShapeForBCType (t_BarCode* pBarCode) | ||||||
Gets the default bar shape for current barcode type. Returns default value.
| |||||||
| COLORREF | BCGetColorBC (t_BarCode* pBarCode) | ||||||
Gets the current barcode color. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetColorBC (t_BarCode* pBarCode, COLORREF color) | ||||||
Sets the color the of barcode. Specifies the color of the bars (or dots) of the barcode.
| |||||||
| COLORREF | BCGetColorFont (t_BarCode* pBarCode) | ||||||
Gets the current color of the human readable text. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetColorFont (t_BarCode* pBarCode, COLORREF color) | ||||||
Sets the color of the human readable text. Used only when drawing of the human-readable text is activated (see BCSetPrintText())
| |||||||
| COLORREF | BCGetColorBk (t_BarCode* pBarCode) | ||||||
Gets the current background color. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetColorBk (t_BarCode* pBarCode, COLORREF color) | ||||||
Sets the color of the barcode background. Specifies the background color of the barcode. This color is used to draw the spaces of the barcode when the BackStyle is set to OPAQUE.
| |||||||
| e_ColorMode | BCGetColorMode (const t_BarCode* pBarcode) | ||||||
Retrieves the color mode (CMYK, RGB, or Grayscale). \param[in] pBarcode Pointer to barcode structure
| |||||||
| VOID | BCSetColorMode (t_BarCode* pBarcode, e_ColorMode mode) | ||||||
| Sets the color mode (CMYK, RGB, or Grayscale). \param[in,out] pBarcode Pointer to barcode structure. \param[in] mode The color mode. ----------------------------------------------------------------------------. | |||||||
| VOID | BCSetBarcodeColorCMYK (t_BarCode* pBarcode, DOUBLE dCyan, DOUBLE dMagenta, DOUBLE dYellow, DOUBLE dBlack) | ||||||
Sets the color of the barcode.
| |||||||
| VOID | BCGetBarcodeColorCMYK (const t_BarCode* pBarcode, DOUBLE* pdCyan, DOUBLE* pdMagenta, DOUBLE* pdYellow, DOUBLE* pdBlack) | ||||||
Retrieves the color of the barcode.
| |||||||
| VOID | BCSetBarcodeColorGDI (t_BarCode* pBarcode, COLORREF color) | ||||||
Sets the color of the barcode.
| |||||||
| VOID | BCGetBarcodeColorGDI (const t_BarCode* pBarcode, COLORREF* pColor) | ||||||
Retrieves the color of the barcode.
| |||||||
| VOID | BCSetBarcodeColorGray (t_BarCode* pBarcode, DOUBLE dGray) | ||||||
Sets the color of the barcode.
| |||||||
| VOID | BCGetBarcodeColorGray (const t_BarCode* pBarcode, DOUBLE* pdGray) | ||||||
Retrieves the color of the barcode.
| |||||||
| VOID | BCSetBarcodeColorRGB (t_BarCode* pBarcode, DOUBLE dRed, DOUBLE dGreen, DOUBLE dBlue) | ||||||
Sets the color of the barcode.
| |||||||
| VOID | BCGetBarcodeColorRGB (const t_BarCode* pBarcode, DOUBLE* pdRed, DOUBLE* pdGreen, DOUBLE* pdBlue) | ||||||
Retrieves the RGB color of the barcode.
| |||||||
| VOID | BCSetBackgroundColorCMYK (t_BarCode* pBarcode, DOUBLE dCyan, DOUBLE dMagenta, DOUBLE dYellow, DOUBLE dBlack) | ||||||
Sets the background color the of barcode.
| |||||||
| VOID | BCGetBackgroundColorCMYK (const t_BarCode* pBarcode, DOUBLE* pdCyan, DOUBLE* pdMagenta, DOUBLE* pdYellow, DOUBLE* pdBlack) | ||||||
Retrieves the background color of the barcode.
| |||||||
| VOID | BCSetBackgroundColorGDI (t_BarCode* pBarcode, COLORREF color) | ||||||
Sets the background color of the barcode.
| |||||||
| VOID | BCGetBackgroundColorGDI (const t_BarCode* pBarcode, COLORREF* pColor) | ||||||
Retrieves the background color of the barcode.
| |||||||
| VOID | BCSetBackgroundColorGray (t_BarCode* pBarcode, DOUBLE dGray) | ||||||
Sets the background color of the barcode.
| |||||||
| VOID | BCGetBackgroundColorGray (const t_BarCode* pBarcode, DOUBLE* pdGray) | ||||||
Retrieves the background color of the barcode.
| |||||||
| VOID | BCSetBackgroundColorRGB (t_BarCode* pBarcode, DOUBLE dRed, DOUBLE dGreen, DOUBLE dBlue) | ||||||
Sets the background color of the barcode.
| |||||||
| VOID | BCGetBackgroundColorRGB (const t_BarCode* pBarcode, DOUBLE* pdRed, DOUBLE* pdGreen, DOUBLE* pdBlue) | ||||||
Retrieves the background color of the barcode.
| |||||||
| VOID | BCSetFontColorCMYK (t_BarCode* pBarcode, DOUBLE dCyan, DOUBLE dMagenta, DOUBLE dYellow, DOUBLE dBlack) | ||||||
Sets the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCGetFontColorCMYK (const t_BarCode* pBarcode, DOUBLE* pdCyan, DOUBLE* pdMagenta, DOUBLE* pdYellow, DOUBLE* pdBlack) | ||||||
Retrieves the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCSetFontColorGDI (t_BarCode* pBarcode, COLORREF color) | ||||||
Sets the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCGetFontColorGDI (const t_BarCode* pBarcode, COLORREF* pColor) | ||||||
Sets the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCSetFontColorGray (t_BarCode* pBarcode, DOUBLE dGray) | ||||||
Sets the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCGetFontColorGray (const t_BarCode* pBarcode, DOUBLE* pdGray) | ||||||
Retrieves the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCSetFontColorRGB (t_BarCode* pBarcode, DOUBLE dRed, DOUBLE dGreen, DOUBLE dBlue) | ||||||
Sets the font color of the currently active text object (usually the human readable text).
| |||||||
| VOID | BCGetFontColorRGB (const t_BarCode* pBarcode, DOUBLE* pdRed, DOUBLE* pdGreen, DOUBLE* pdBlue) | ||||||
Retrieves the font color of the currently active text object (usually the human readable text).
| |||||||
| LPCSTR | BCGetRatioA (t_BarCode* pBarCode) | ||||||
Gets current print-ratio string. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGetRatioW (t_BarCode* pBarCode) | ||||||
Gets current print-ratio string. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetRatioA (t_BarCode* pBarCode, LPCSTR szRatio) | ||||||
Set print-ratio string. Specifies the print-ratio string for the width-relationship of the single bars and spaces. A format template used for this string is available in the property RatioHint (see BCGetRatioHint()). The ratio string looks like "1B:2B:...1S:2S" where 1B stands for the ratio-value for the most narrow bar, 1S for the ratio-value of the most-narrow space. The number of values for bars (xB) and the number of values for the spaces (xS) depends on the current symbology. It is explained in more detail in the separate document Barcode Reference.
| |||||||
| ERRCODE | BCSetRatioW (t_BarCode* pBarCode, LPCWSTR szRatio) | ||||||
Set print-ratio string. Specifies the print-ratio string for the width-relationship of the single bars and spaces. A format template used for this string is available in the property RatioHint (see BCGetRatioHint()). The ratio string looks like "1B:2B:...1S:2S" where 1B stands for the ratio-value for the most narrow bar, 1S for the ratio-value of the most-narrow space. The number of values for bars (xB) and the number of values for the spaces (xS) depends on the current symbology. It is explained in more detail in the separate document Barcode Reference.
| |||||||
| LPCSTR | BCGetRatioHint (e_BarCType eType) | ||||||
Returns the format hint for the print-ratio. Return the format of the ratio-string (to be used only as hint for users or developers). This hint serves as template for your own print-ratio strings passed to BSSetRatio(). The value depends on the selected barcode symbology. Learn more about it in the Barcode Reference.
| |||||||
| LPCSTR | BCGetRatioString (e_BarCType eType) | ||||||
Returns the default print-ratio string of the barcode. Returns the default print-ratio of the selected barcode type as string. The ratio string looks like "1:3:1:3" where the single values separated by colons corresponds to the ratio-values of the bars or spaces. The format of the ratio-string matches the format of the ratio-hint (see BCGetRatioHint()). This default value is used if no other print-ratio was selected.
| |||||||
| LONG | BCGetCountBars (e_BarCType eBarCType) | ||||||
| Returns number of different bar-widths used by the symbology. Returns number of different bar-widths used for the specified barcode symbology. Code 2 of 5 Interleaved uses two different bar-widths: the return value is 2.
| |||||||
| LONG | BCGetCountSpaces (e_BarCType eBarCType) | ||||||
| Returns number of different space-widths used by the symbology. Returns number of different space-widths for specified barcode symbology. Code 2 of 5 Interleaved uses two different space-widths: the return value is 2.
| |||||||
| ERRCODE | BCSetQuietZone (t_BarCode* pBarCode, LPRECTD prQuietZone, e_MUnit eQZMUnit) | ||||||
Sets the size of the quiet-zones in given units. Specifies the size of the required quiet zone in the respective units. A quiet zone is an unprinted area above, below, right, or left of a barcode.
| |||||||
| const LPRECTD | BCGetQuietZone (t_BarCode* pBarCode) | ||||||
Gets current quiet-zone settings. Returns currently adjusted value.
| |||||||
| e_MUnit | BCGetQuietZoneUnit (t_BarCode* pBarCode) | ||||||
Gets current measurement unit used for specifying quiet-zones. Returns currently adjusted value.
| |||||||
| BOOL | BCGetUseQuietZoneDefaultColor (t_BarCode* pBarCode, e_QuietZone eZone) | ||||||
Determines whether default background color shall be used for given quiet zone side. Returns currently adjusted value.
| |||||||
| VOID | BCSetQuietZoneColorCMYK (t_BarCode* pBarcode, e_QuietZone eZone, BOOL bUseDefault, DOUBLE dCyan, DOUBLE dMagenta, DOUBLE dYellow, DOUBLE dBlack) | ||||||
Sets the background color of the quiet zone.
| |||||||
| VOID | BCGetQuietZoneColorCMYK (const t_BarCode* pBarcode, e_QuietZone eZone, DOUBLE* pdCyan, DOUBLE* pdMagenta, DOUBLE* pdYellow, DOUBLE* pdBlack) | ||||||
Retrieves the background color of the quiet zone.
| |||||||
| VOID | BCSetQuietZoneColorGDI (t_BarCode* pBarcode, e_QuietZone eZone, BOOL bUseDefault, COLORREF color) | ||||||
Sets the background color of the quiet zone.
| |||||||
| VOID | BCGetQuietZoneColorGDI (const t_BarCode* pBarcode, e_QuietZone eZone, COLORREF* pColor) | ||||||
Retrieves the background color of the quiet zone.
| |||||||
| VOID | BCSetQuietZoneColorGray (t_BarCode* pBarcode, e_QuietZone eZone, BOOL bUseDefault, DOUBLE dGray) | ||||||
Sets the background color of the quiet zone.
| |||||||
| VOID | BCGetQuietZoneColorGray (const t_BarCode* pBarcode, e_QuietZone eZone, DOUBLE* pdGray) | ||||||
Retrieves the background color of the quiet zone.
| |||||||
| VOID | BCSetQuietZoneColorRGB (t_BarCode* pBarcode, e_QuietZone eZone, BOOL bUseDefault, DOUBLE dRed, DOUBLE dGreen, DOUBLE dBlue) | ||||||
Sets the background color of the quiet zone.
| |||||||
| VOID | BCGetQuietZoneColorRGB (const t_BarCode* pBarcode, e_QuietZone eZone, DOUBLE* pdRed, DOUBLE* pdGreen, DOUBLE* pdBlue) | ||||||
Retrieves the background color of the quiet zone.
| |||||||
| LONG | BCGetMaximumTextIndex () | ||||||
Gets the maximum text index. Returns the maximum index of available text objects.
| |||||||
| LONG | BCGetActiveTextIndex (t_BarCode* pBarCode) | ||||||
| Gets the currently active text index. Returns the index of the currently active/selected text. A return value of \li 0 ... means that the human readable text is active (this is the default) \li >0 ... means that the extra text with given index [1 .. n] is active The user can only change the settings of the text that is currently active.
| |||||||
| ERRCODE | BCSetActiveTextIndex (t_BarCode* pBarCode, LONG nIndex) | ||||||
Sets the currently active text index. The user can only change the setting of the text that is currently active.
| |||||||
| LOGFONTA* | BCGetLogFont (t_BarCode* pBarCode) | ||||||
Gets the font of the currently active text object (usually the human readable text - Windows only). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetLogFont (t_BarCode* pBarCode, const LOGFONTA* lf) | ||||||
Sets the font of the currently active text object (usually the human readable text - Windows only). Sets the font characteristics used for the human readable text and the extra texts.
| |||||||
| CHAR* | BCGetFontNameA (t_BarCode* pBarCode) | ||||||
Gets the font of the currently active text object (usually the human readable text).
| |||||||
| WCHAR* | BCGetFontNameW (t_BarCode* pBarCode) | ||||||
Gets the font of the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetFontNameA (t_BarCode* pBarCode, const CHAR* szName) | ||||||
| Sets the font of the currently active text object (usually the human readable text). The name of the font depends on the output format, for example: \li Postscript accepts names such as Helvetica, Courier, Times-Roman, Helvetica-Bold, etc.\li PCL accepts names and font numbers such as Helvetica (maps to 16602), Times (maps to 4101), Courier (maps to 4099) or any font number (optional: name and number can be followed by 'Bold') Consult a Postscript or PCL reference for more information.
| |||||||
| ERRCODE | BCSetFontNameW (t_BarCode* pBarCode, const WCHAR* szName) | ||||||
| Sets the font of the currently active text object (usually the human readable text). The name of the font depends on the output format, for example: \li Postscript accepts names such as Helvetica, Courier, Times-Roman, Helvetica-Bold, etc.\li PCL accepts names and font numbers such as Helvetica (maps to 16602), Times (maps to 4101), Courier (maps to 4099) or any font number (optional: name and number can be followed by 'Bold') Consult a Postscript or PCL reference for more information.
| |||||||
| INT | BCGetFontHeight (t_BarCode* pBarCode) | ||||||
Gets the font size in Point of the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetFontHeight (t_BarCode* pBarCode, INT nHeight) | ||||||
Sets the font size [points] of the currently active text object (usually the human readable text). If the font size is not set, a suitable font size is automatically calculated depending on the barcode type and barcode dimensions.
| |||||||
| ERRCODE | BCSetPrintText (t_BarCode* pBarCode, BOOL bReadable, BOOL bAbove) | ||||||
Sets options concerning the currently active text (usually the human readable text). Determines whether the currently active text should be printed and where it should be located (below or above the bar code).
| |||||||
| BOOL | BCGetTextAbove (t_BarCode* pBarCode) | ||||||
Determines if human-readable text is printed below or above the barcode.
| |||||||
| BOOL | BCGetPrintText (t_BarCode* pBarCode) | ||||||
Determines if the currently active text object (usually the human readable text) is visible.
| |||||||
| LONG | BCGetTextDist (t_BarCode* pBarCode) | ||||||
Retrieves the distance between the human readable text and the barcode.
| |||||||
| ERRCODE | BCSetTextDist (t_BarCode* pBarCode, LONG nTextDist) | ||||||
Sets the distance between the human readable text and the barcode. The default text distance is computed by TBarCode automatically, but can be overridden by calling BCSetTextDist().
| |||||||
| LPCSTR | BCGetDisplayTextA (t_BarCode* pBarCode) | ||||||
Retrieves the content of the currently active text object (usually the human readable text).
| |||||||
| LPCWSTR | BCGetDisplayTextW (t_BarCode* pBarCode) | ||||||
Retrieves the content of the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetDisplayTextA (t_BarCode* pBarCode, LPCSTR szText) | ||||||
Sets the content of the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetDisplayTextW (t_BarCode* pBarCode, LPCWSTR szText) | ||||||
Sets the content of the currently active text object (usually the human readable text).
| |||||||
| e_BCAlign | BCGetTextAlignment (t_BarCode* pBarCode) | ||||||
Gets the alignment of the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetTextAlignment (t_BarCode* pBarCode, e_BCAlign eAlign) | ||||||
Sets the alignment of the currently active text object (usually the human readable text). The default is center alignment.
| |||||||
| RECT | BCGetTextPosition (t_BarCode* pBarCode) | ||||||
Gets the position of the currently active text object. The text position is specified by a bounding rectangle. The coordinates of this rectangle are relative to the bar code's bounding rectangle.
| |||||||
| BOOL | BCGetTextClipping (t_BarCode* pBarCode) | ||||||
Determines if the currently active text object (usually the human readable text) is clipped.
| |||||||
| BOOL | BCIsWordWrappingEnabled (t_BarCode* pBarCode) | ||||||
| [NOT IMPLEMENTED YET!] Determines if word wrapping is enabled for the currently active text object (usually the human readable text).
| |||||||
| ERRCODE | BCSetTextPosition (t_BarCode* pBarCode, LPRECT pRect, BOOL bClipping, BOOL bWordWrap) | ||||||
| e_Degree | BCGetTextRotation (t_BarCode* pBarCode) | ||||||
Gets the the rotation of the currently active text object. The text rotation is defined relatively to the bar code rotation. This means that both rotation values will be added.
| |||||||
| ERRCODE | BCSetTextRotation (t_BarCode* pBarCode, e_Degree eRotation) | ||||||
Sets the the rotation of the currently active text object. The text rotation is defined relatively to the bar code rotation. This means that both rotation values will be added.
| |||||||
| DOUBLE | BCGetCharacterSpacing (t_BarCode* pBarCode) | ||||||
Gets the the character spacing of the currently active text object. Positive values increment the spacing, negative values decrement it.
| |||||||
| ERRCODE | BCSetCharacterSpacing (t_BarCode* pBarCode, DOUBLE dSpacing) | ||||||
Sets the the character spacing of the currently active text object. Positive values increment the spacing, negative values decrement it. The currently active text object can be selected by calling BCSetActiveTextIndex().
| |||||||
| e_CDMethod | BCGetCDMethod (t_BarCode* pBarCode) | ||||||
Gets the check-digit method currently in use. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetCDMethod (t_BarCode* pBarCode, e_CDMethod eMethod) | ||||||
| Chooses check-digit method to be used. Specifies the calculation method for the check-digit. Possible values are listed in the Barcode Reference. The method for the check-digit calculation used by TBarCode depends on the adjusted barcode type. In order to make the product as user-friendly as possible, a standard (default) method for each barcode type is supplied. Please note that for some bar codes there is no default check digit, but using a specific method is recommended in their specification. Some symbologies have an internal check sum (e.g. Modulo-103 used with Code-128). This check sum is always part of the generated bar code - regardless what the user specifies here.
| |||||||
| LONG | BCGetCheckDigitsA (t_BarCode* pBarCode, LPSTR lpszCDText, LONG nSize) | ||||||
Returns all computed check-digits for the current barcode. Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()
| |||||||
| LONG | BCGetCheckDigitsW (t_BarCode* pBarCode, LPWSTR lpszCDText, LONG nSize) | ||||||
Returns all computed check-digits for the current barcode. Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()
| |||||||
| ERRCODE | BCCalcCD (t_BarCode* pBarCode) | ||||||
Calculates check-digit(s). Calculates the check-digit(s) depending on all barcode parameters previously set (symbology, check digit method, bar code data). You can retrieve the calculated check sum with BCGetCheckDigits(). Do not change barcode parameters or input data after this call (if you want to generate a bar code).
| |||||||
| ERRCODE | BCCalcCDExtA (t_BarCode* pBarCode, LPCSTR lpszData, e_CDMethod eCDMethod, LPSTR lpszChecksum, LONG *nChecksum ) | ||||||
Calculates check-digit(s) for a given data string. Calculates the check sum for a given data string with the given check digit method. Use this function to generate check digits independently from the adjusted bar code data. E.g. If you need a check digit only displayed in the human readable text (and not encoded in the symbol), use this function to build up your display string.
| |||||||
| ERRCODE | BCCalcCDExtW (t_BarCode* pBarCode, LPCWSTR lpszData, e_CDMethod eCDMethod, LPWSTR lpszChecksum, LONG *nChecksum ) | ||||||
Calculates check-digit(s) for a given data string. Calculates the check sum for a given data string with the given check digit method. Use this function to generate check digits independently from the adjusted bar code data. E.g. If you need a check digit only displayed in the human readable text (and not encoded in the symbol), use this function to build up your display string.
| |||||||
| e_CDMethod* | BCGetCDListByType (e_BarCType eBCType) | ||||||
Returns the implemented check-digit methods for a barcode symbology. Returns an array of implemented check-digit methods for the specified barcode symbology. \param[in] eBCType Type of barcode.
| |||||||
| LPCSTR | BCGetNameFromEnumA (e_CDMethod eCDMethod) | ||||||
Returns name of check-digit method. Returns string description of the check-digit method specified. \param[in] eCDMethod Check-digit method.
| |||||||
| LPCWSTR | BCGetNameFromEnumW (e_CDMethod eCDMethod) | ||||||
Returns name of check-digit method. Returns string description of the check-digit method specified. \param[in] eCDMethod Check-digit method.
| |||||||
| LPCSTR* | BCGetCDListA () | ||||||
Returns the implemented check-digit methods. Returns array of implemented check-digit methods. Use this function in connection with BCGetCDCount().
| |||||||
| LPCWSTR* | BCGetCDListW () | ||||||
Returns the implemented check-digit methods. Returns array of implemented check-digit methods. Use this function in connection with BCGetCDCount().
| |||||||
| LONG | BCGetCDCount () | ||||||
Returns number of implemented check-digit methods. Returns the number of implemented check-digit methods. Use this function in connection with BCGetCDList().
| |||||||
| LPCSTR | BCGetOptionsA (t_BarCode* pBarCode, LPCSTR szFilter) | ||||||
Retrieves the option string that contains all applied options. If operation fails, e.g. if no options that apply to the filter have been found, NULL is returned.
| |||||||
| LPCWSTR | BCGetOptionsW (t_BarCode* pBarCode, LPCWSTR szFilter) | ||||||
Retrieves the option string that contains all applied options. If operation fails, e.g. if no options that apply to the filter have been found, NULL is returned.
| |||||||
| ERRCODE | BCSetOptionsA (t_BarCode* pBarCode, LPCSTR szOption) | ||||||
| Sets the barcode option string. \details The option string consists of at least one name/value pair followed by zero or more name/value pairs separated by space characters. The format is: name=value{ name=value}.A name must be a valid predefined option name. Values can be given in the following ways: \li As Simple Values.Simple values are passed as they are. Spaces must be escaped by a preceding "". Valid values for boolean options are true and false.\n e.g.: NAME_BOOL=true NAME_NUMBER=123 NAME_DOUBLE=123.45 NAME_TEXT=ABC NAME_WITHSPACE=ABC abc \li As Text Values.Text values are surrounded by single quotes. They may contain spaces which don't have to be escaped. Single quotes that occur in the text have to be escaped by a preceding "". e.g.: NAME_TEXT='ABC' NAME_WITHSPACE='ABC abc' NAME_WITHQUOTE='Robin's Nest' \li As Complex Values.Complex values are surrounded by curly braces "{...}". Complex value may consist of other simple, text, or complex values. e.g.: NAME_COMPLEX={NAME_TEXT='ABC' NAME_NUMBER=123}\details Following options are currently supported: \li DRAW_PS_Overprint=[bool] - enable/disable overprinting for PostScript output. \li DRAW_BarWidthReduction_Legacy=[enum] - enable legacy mode for bar width reduction (0 .. disable, 1 .. reduce each module, 2 .. reduce right and bottom). \li DRAW_BarWidthReduction_Values={x=[double] y=[double] unit=[enum]} - set the bar width reduction separated for horizontal (x) and vertical (y) destruction with given unit (see BCSetBarWidthReduction). \li DRAW_OptResolution=[bool] - optimize resolution (see BCSetOptResolution). \li CHECK_CDMethod=[enum] - set the check digit method (see BCSetCDMethod, e_CDMethod). \li CHECK_CodaBarIncludeStartStop=[bool] - determine whether to include start and stop character of CodaBar2 into check digit calculation. \li DATA_TranslateEsc=[bool] - enable/disable translation of escape sequences (see BCSetTranslateEsc). \li DATA_CodePage=[enum] - set the code page for the barcode data (see BCSetCodePage, e_CodePage). \li DATA_Format=[string] - set the format string (see BCSetFormatW). \li MQR_Version=[enum] - set the Micro QR-Code version (see BCSet_MQR_Version, e_MQRVersion). \li MQR_Mask=[enum] - set the Micro QR-Code mask (see BCSet_MQR_Mask, e_MQRMask). \li QrCode_Version=[enum] - set the QR-Code version (see BCSet_QR_Version, e_QRVersion). \li QrCode_Format=[enum] - set the QR-Code format (see BCSet_QR_Format, e_QRFormat). \li QrCode_FmtAppIndicator=[string] - set the QR-Code format application indicator (see BCSet_QR_FmtAppIndicator). \li QrCode_ECLevel=[enum] - set the QR-Code error correction level (see BCSet_QR_ECLevel, e_QRECLevel). \li QrCode_Mask=[enum] - set the QR-Code mask (see BCSet_QR_Mask, e_QRMask). \li QrCode_KanjiChineseCompaction=[enum] - set the QR-Code compaction mode (see BCSet_QR_KanjiChineseCompaction, e_QRMBCompaction). \li QrCode_Append={sum=[int] index=[int] parity=[byte]} - set the QR-Code structured append (see BCSet_QR_Append). \li QrCode_EncodingMode=[enum] - set the QR-Code Encoding Mode (0 .. optimal, 1 .. prefer binary/Byte, 2 .. prefer alphanumeric). \li QrCode_SizeFactorSwissCross=[double] - set the size factor of the Swiss Cross in the Swiss QR Code (default=1.0). \li DataMatrix_Size=[enum] - set the Data Matrix Size (see BCSet_DM_Size, e_DMSizes). \li DataMatrix_Rectangular=[bool] - enforce a rectangular symbol (see BCSet_DM_Rectangular). \li DataMatrix_Format=[enum] - set the Data Matrix format (see BCSet_DM_Format, e_DMFormat). \li DataMatrix_Append={sum=[int] index=[int] fileId=[int]} - set the Data Matrix structured append (see BCSet_DM_Append). \li DataMatrix_EncodingMode=[enum] - set the Data Matrix Encoding Mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer ASCII, 3 .. prefer C40). \li DataMatrix_ECC144Alternative=[bool] - enable/disable alternative ECC for symbol size 144x144. \li DataMatrix_CaptivaScanner=[bool] - enable/disable CAPTIVA scanner mode. \li HanXin_Version=[enum] - set the Han Xin version (see BCSet_HanXin_Version, e_HanXinSizes). \li HanXin_EnforceBinaryEncoding=[bool] - do enforce binary encoding (see BCSet_HanXin_EnforceBinaryEncoding). \li HanXin_ECLevel=[enum] - set the Han Xin error correction level (see BCSet_HanXin_ECLevel, e_HanXinECLevel). \li HanXin_Mask=[enum] - set the Han Xin mask (see BCSet_HanXin_Mask, e_HanXinMask). \li DotCode_Size={mode=[enum] size=[string]} - set the DotCode Size (see BCSet_DotCode_Size, e_DCSizeMode). \li DotCode_PrintDirection=[enum] - set the DotCode print direction (see BCSet_DotCode_PrintDirection, e_DCPrintDirection). \li DotCode_EnforceBinaryEncoding=[bool] (deprecated, please use DotCode_PreferredEncoding) - do enforce binary encoding (see BCSet_DotCode_EnforceBinaryEncoding). \li DotCode_PreferredEncoding=[enum] - set the DotCode preferred encoding mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer Mode A, 3 .. prefer Mode B). \li DotCode_Format={format=[enum] specifier=[string]} - set the DotCode format (see BCSet_DotCode_Format, e_DCFormat). \li DotCode_Mask=[enum] - set the DotCode mask (see BCSet_DotCode_Mask, e_DCMask). \li DotCode_Append={on=<bool> total=<int> index=<int>} - set the DotCode structured append (see BCSet_DotCode_AppendActive, BCSet_DotCode_Append). \li DotCode_ExtMaskSelection=[bool] - use the extended DotCode mask selection algorithm. This flag has only effect, when no specific mask is selected. \li PDF417_MacroPDF417={fileId=[string] index=[int] last=[bool] count=[int]} - set the most common Macro PDF417 parameters. \li EanUpc_NotchHeight=[int] - set the EAN/UPC notch height (see BCSetNotchHeight). \li EanUpc_ShowQZMarker=[bool] - show quiet zone markers (see Format Setting '<'). \li EanUpc_LegacyDraw=[bool] - enable legacy draw mode (without increasing or decreasing the module width). \li Code128_LegacyMode=[bool] - enable legacy encoding mode (no extended encoding, mapping of umlauts). \li Hibc_Lic_Version=[enum] - set the HIBC LIC standard version (0 .. V2.2, 1 .. V2.4, 2 .. V2.6). \li Hibc_Pas_Version=[enum] - set the HIBC PAS standard version (0 .. V1.2, 1 .. V1.3). \li Hibc_Replace0=[bool] - replace '0' in display text by 'Ø'. \li Comp_CCType=[enum] - set the composite component type (see BCSet2DCompositeComponent, e_CCType). Valid values for: \li [bool] (boolean) are true and false. \li [enum] (enumeration) are integer values in the range of the according enumeration data type. See also "tecbcenum.h". \li [string] (string) are string/text values. \li [int] (integer) are integer values. \li [byte] (byte) are integer values in the range of [0..255]. \param[in,out] pBarCode Pointer to barcode structure. \param[in] szOption Option string.
| |||||||
| ERRCODE | BCSetOptionsW (t_BarCode* pBarCode, LPCWSTR szOption) | ||||||
| Sets the barcode option string. \details The option string consists of at least one name/value pair followed by zero or more name/value pairs separated by space characters. The format is: name=value{ name=value}.A name must be a valid predefined option name. Values can be given in the following ways: \li As Simple Values.Simple values are passed as they are. Spaces must be escaped by a preceding "". Valid values for boolean options are true and false.\n e.g.: NAME_BOOL=true NAME_NUMBER=123 NAME_DOUBLE=123.45 NAME_TEXT=ABC NAME_WITHSPACE=ABC abc \li As Text Values.Text values are surrounded by single quotes. They may contain spaces which don't have to be escaped. Single quotes that occur in the text have to be escaped by a preceding "". e.g.: NAME_TEXT='ABC' NAME_WITHSPACE='ABC abc' NAME_WITHQUOTE='Robin's Nest' \li As Complex Values.Complex values are surrounded by curly braces "{...}". Complex value may consist of other simple, text, or complex values. e.g.: NAME_COMPLEX={NAME_TEXT='ABC' NAME_NUMBER=123}\details Following options are currently supported: \li DRAW_PS_Overprint=[bool] - enable/disable overprinting for PostScript output. \li DRAW_BarWidthReduction_Legacy=[enum] - enable legacy mode for bar width reduction (0 .. disable, 1 .. reduce each module, 2 .. reduce right and bottom). \li DRAW_BarWidthReduction_Values={x=[double] y=[double] unit=[enum]} - set the bar width reduction separated for horizontal (x) and vertical (y) destruction with given unit (see BCSetBarWidthReduction). \li DRAW_OptResolution=[bool] - optimize resolution (see BCSetOptResolution). \li CHECK_CDMethod=[enum] - set the check digit method (see BCSetCDMethod, e_CDMethod). \li CHECK_CodaBarIncludeStartStop=[bool] - determine whether to include start and stop character of CodaBar2 into check digit calculation. \li DATA_TranslateEsc=[bool] - enable/disable translation of escape sequences (see BCSetTranslateEsc). \li DATA_CodePage=[enum] - set the code page for the barcode data (see BCSetCodePage, e_CodePage). \li DATA_Format=[string] - set the format string (see BCSetFormatW). \li MQR_Version=[enum] - set the Micro QR-Code version (see BCSet_MQR_Version, e_MQRVersion). \li MQR_Mask=[enum] - set the Micro QR-Code mask (see BCSet_MQR_Mask, e_MQRMask). \li QrCode_Version=[enum] - set the QR-Code version (see BCSet_QR_Version, e_QRVersion). \li QrCode_Format=[enum] - set the QR-Code format (see BCSet_QR_Format, e_QRFormat). \li QrCode_FmtAppIndicator=[string] - set the QR-Code format application indicator (see BCSet_QR_FmtAppIndicator). \li QrCode_ECLevel=[enum] - set the QR-Code error correction level (see BCSet_QR_ECLevel, e_QRECLevel). \li QrCode_Mask=[enum] - set the QR-Code mask (see BCSet_QR_Mask, e_QRMask). \li QrCode_KanjiChineseCompaction=[enum] - set the QR-Code compaction mode (see BCSet_QR_KanjiChineseCompaction, e_QRMBCompaction). \li QrCode_Append={sum=[int] index=[int] parity=[byte]} - set the QR-Code structured append (see BCSet_QR_Append). \li QrCode_EncodingMode=[enum] - set the QR-Code Encoding Mode (0 .. optimal, 1 .. prefer binary/Byte, 2 .. prefer alphanumeric). \li QrCode_SizeFactorSwissCross=[double] - set the size factor of the Swiss Cross in the Swiss QR Code (default=1.0). \li DataMatrix_Size=[enum] - set the Data Matrix Size (see BCSet_DM_Size, e_DMSizes). \li DataMatrix_Rectangular=[bool] - enforce a rectangular symbol (see BCSet_DM_Rectangular). \li DataMatrix_Format=[enum] - set the Data Matrix format (see BCSet_DM_Format, e_DMFormat). \li DataMatrix_Append={sum=[int] index=[int] fileId=[int]} - set the Data Matrix structured append (see BCSet_DM_Append). \li DataMatrix_EncodingMode=[enum] - set the Data Matrix Encoding Mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer ASCII, 3 .. prefer C40). \li DataMatrix_ECC144Alternative=[bool] - enable/disable alternative ECC for symbol size 144x144. \li DataMatrix_CaptivaScanner=[bool] - enable/disable CAPTIVA scanner mode. \li HanXin_Version=[enum] - set the Han Xin version (see BCSet_HanXin_Version, e_HanXinSizes). \li HanXin_EnforceBinaryEncoding=[bool] - do enforce binary encoding (see BCSet_HanXin_EnforceBinaryEncoding). \li HanXin_ECLevel=[enum] - set the Han Xin error correction level (see BCSet_HanXin_ECLevel, e_HanXinECLevel). \li HanXin_Mask=[enum] - set the Han Xin mask (see BCSet_HanXin_Mask, e_HanXinMask). \li DotCode_Size={mode=[enum] size=[string]} - set the DotCode Size (see BCSet_DotCode_Size, e_DCSizeMode). \li DotCode_PrintDirection=[enum] - set the DotCode print direction (see BCSet_DotCode_PrintDirection, e_DCPrintDirection). \li DotCode_EnforceBinaryEncoding=[bool] (deprecated, please use DotCode_PreferredEncoding) - do enforce binary encoding (see BCSet_DotCode_EnforceBinaryEncoding). \li DotCode_PreferredEncoding=[enum] - set the DotCode preferred encoding mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer Mode A, 3 .. prefer Mode B). \li DotCode_Format={format=[enum] specifier=[string]} - set the DotCode format (see BCSet_DotCode_Format, e_DCFormat). \li DotCode_Mask=[enum] - set the DotCode mask (see BCSet_DotCode_Mask, e_DCMask). \li DotCode_Append={on=<bool> total=<int> index=<int>} - set the DotCode structured append (see BCSet_DotCode_AppendActive, BCSet_DotCode_Append). \li DotCode_ExtMaskSelection=[bool] - use the extended DotCode mask selection algorithm. This flag has only effect, when no specific mask is selected. \li PDF417_MacroPDF417={fileId=[string] index=[int] last=[bool] count=[int]} - set the most common Macro PDF417 parameters. \li EanUpc_NotchHeight=[int] - set the EAN/UPC notch height (see BCSetNotchHeight). \li EanUpc_ShowQZMarker=[bool] - show quiet zone markers (see Format Setting '<'). \li EanUpc_LegacyDraw=[bool] - enable legacy draw mode (without increasing or decreasing the module width). \li Code128_LegacyMode=[bool] - enable legacy encoding mode (no extended encoding, mapping of umlauts). \li Hibc_Lic_Version=[enum] - set the HIBC LIC standard version (0 .. V2.2, 1 .. V2.4, 2 .. V2.6). \li Hibc_Pas_Version=[enum] - set the HIBC PAS standard version (0 .. V1.2, 1 .. V1.3). \li Hibc_Replace0=[bool] - replace '0' in display text by 'Ø'. \li Comp_CCType=[enum] - set the composite component type (see BCSet2DCompositeComponent, e_CCType). Valid values for: \li [bool] (boolean) are true and false. \li [enum] (enumeration) are integer values in the range of the according enumeration data type. See also "tecbcenum.h". \li [string] (string) are string/text values. \li [int] (integer) are integer values. \li [byte] (byte) are integer values in the range of [0..255]. \param[in,out] pBarCode Pointer to barcode structure. \param[in] szOption Option string.
| |||||||
| DOUBLE | BCGet2D_XRows (const t_BarCode* pBarCode) | ||||||
Returns the height of the barcode in modules. The measurement unit used for the return value is the module width (X). The total symbol height would be the return value of this function * X (X = module width) + height of text area (BCGetTextAreaHeight()). Can be used for BCSaveImage() to optimize the resolution of the resulting image.
| |||||||
| LONG | BCGet2D_XCols (const t_BarCode* pBarCode) | ||||||
Returns the width of the barcode in modules. The measurement unit used for the return value is the module width (X). The total symbol width would be the return value of this function * X (X = module width). Can be used for BCSaveImage() to optimize the resolution of the resulting image.
| |||||||
| DOUBLE | BCGetCountModules (const t_BarCode* pBarCode) | ||||||
Returns the number of modules in the barcode. Returns the number of modules for the current barcode with respect to encoded data, check-digits, subset and other barcode parameters. With 2D symbologies the total number of all modules (in all rows) will be returned.
| |||||||
| LONG | BCGetCountRows (const t_BarCode* pBarCode) | ||||||
Returns the number of rows in the barcode. Returns the number of rows in multi-row symbologies (PDF417, Data Matrix, Codablock-F, QR-Code, MicroPDF417, RSS Stacked versions)
| |||||||
| DOUBLE | BCGetModuleWidth (t_BarCode* pBarCode, LPRECT pRect, HDC hDC, e_MUnit eUnit) | ||||||
| Returns the module width. Returns the computed module width for a given device context with respect to encoded data, check-digits, subset and other barcode parameters. You can specify the unit, which should be used for the return value. hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| |||||||
| DOUBLE | BCGetBarcodeWidth (t_BarCode* pBarCode, LPRECT pRect, HDC hDC, e_MUnit eUnit) | ||||||
| Returns the total width of the barcode symbol. Returns the total barcode width in the specified measurement unit for a given device context. You can specify the measurement unit, which should be used for the return value. Use BCGetBarcodeSize() if you also need the height of the symbol. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle. If a module width has been set, the bar code width depends on the module width and the number of horizontal modules. hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| |||||||
| DOUBLE | BCGetBarcodeHeight (t_BarCode* pBarCode, LPRECT pRect, HDC hDC, e_MUnit eUnit) | ||||||
| Returns the height of the barcode symbol. Returns the total barcode height in the specified measurement unit. Use BCGetBarcodeSize() if you also need the width of the symbol. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle. Relevant for 2D or Multi-Row Symbologies (e.g. PDF417, Data Matrix, RSS Stacked...): If a row height has been set, the bar code height depends on the adjusted row height and the number of rows in the symbol. For some symbologies also the module width is relevant for the symbol height. hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| |||||||
| ERRCODE | BCGetBarcodeSize (t_BarCode* pBarCode, LPRECT pRect, HDC hDC, e_MUnit eUnit, DOUBLE* pdWidth, DOUBLE* pdHeight) | ||||||
| Computes the barcode size (recommended method). Computes width and height of barcode with one call. You can use this function before you draw the barcode to ensure that there is enough space available. Call this function after BCCreate() and specify a bounding rectangle (target coordinates, where you would draw the barcode). This rectangle is relevant if you haven't specified a module width or a row height. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle. hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| |||||||
| DOUBLE | BCGetTextAreaHeight (t_BarCode* pBarCode, LPRECT pRect, HDC hDC, e_MUnit eUnit) | ||||||
| Returns the height of the human readable text area. Returns the height of the human readable text area in the specified measurement unit. hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch) \param[in] pBarCode Pointer to barcode structure. \param[in] pRect Bounding rectangle. \param[in] hDC Device context handle. \param[in] eUnit Measurement unit.
| |||||||
| ERRCODE | BCGetOptimalBitmapSize (t_BarCode* pBarCode, LPRECT pRect, LONG nScaleX, LONG nScaleY) | ||||||
Returns the optimal size of a bitmap for given bar code settings. The optimal bitmap size depends on the number of horizontal bar/space modules and also on the number of vertical rows (multi-row or matrix codes). The default height for linear codes can be preset by the pRect->bottom parameter. This function also takes the DPI property into account. You can use the returned values as input for the save image functions.
| |||||||
| DOUBLE | BCGetDPIHorz (t_BarCode* pBarCode) | ||||||
Gets current user-defined horizontal resolution. Gets current user-defined horizontal resolution.
| |||||||
| DOUBLE | BCGetDPIVert (t_BarCode* pBarCode) | ||||||
Gets current user-defined vertical resolution. Gets current user-defined vertical resolution.
| |||||||
| ERRCODE | BCSetDPI (t_BarCode* pBarCode, DOUBLE dDPIHorz, DOUBLE dDPIVert) | ||||||
Sets user defined resolution. Sets output resolution to be used in bar code drawing / calculation functions. If not set (default), the resolution of the available device context is used (e.g. screen resolution or printer resolution). Can be used to estimate the quality of a bar code for a specific output resolution (BCGetQuality()). For other purposes this function should be used careful, because bar code dimensions can change unexpectedly.
| |||||||
| BOOL | BCGetIgnoreDpiFromDC (t_BarCode* pBarCode) | ||||||
| Retrieves whether TBarCode ignores the resolution of the device context (Windows only). More... | |||||||
| ERRCODE | BCSetIgnoreDpiFromDC (t_BarCode* pBarCode, BOOL bIgnore) | ||||||
| Determines whether TBarCode shall ignore the resolution from the device context (Windows only). More... | |||||||
| LPCSTR | BCGetModWidthA (t_BarCode* pBarCode) | ||||||
Gets the current module width (value is returned as string). Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGetModWidthW (t_BarCode* pBarCode) | ||||||
Gets the current module width (value is returned as string). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetModWidthA (t_BarCode* pBarCode, LPCSTR szModWidth) | ||||||
Sets a fixed module width (value is passed as string [0.001 mm]). The module width is defined as the width of the smallest element (bar or space) a barcode is using. Values are specified is 1/1000 mm. If the module width is not set explicitly (default), the module width is automatically adapted to the object size (Bounding rectangle) and the amount of data to be encoded. If a value is set, the width of the modules and therefore of the whole barcode can be controlled (this may also influence the readability!). If set, the barcode width depends on the amount of data encoded in the barcode. For most barcode symbologies the module width should not fall below 0.19 mm. When drawing (Paint) the size of the bounding rectangle must be wide enough to avoid clipping.
| |||||||
| ERRCODE | BCSetModWidthW (t_BarCode* pBarCode, LPCWSTR szModWidth) | ||||||
Sets a fixed module width (value is passed as string [0.001 mm]). The module width is defined as the width of the smallest element (bar or space) a barcode is using. Values are specified is 1/1000 mm. If the module width is not set explicitly (default), the module width is automatically adapted to the object size (Bounding rectangle) and the amount of data to be encoded. If a value is set, the width of the modules and therefore of the whole barcode can be controlled (this may also influence the readability!). If set, the barcode width depends on the amount of data encoded in the barcode. For most barcode symbologies the module width should not fall below 0.19 mm. When drawing (Paint) the size of the bounding rectangle must be wide enough to avoid clipping.
| |||||||
| DOUBLE | BCGetModWidthN (t_BarCode* pBarCode) | ||||||
Gets the module width. The value is returned as numeric parameter [0.001 mm].
| |||||||
| ERRCODE | BCSetModWidthN (t_BarCode* pBarCode, DOUBLE moduleWidth) | ||||||
Sets a fixed module width (value is passed as numeric parameter [0.001 mm]). Sets a fixed module width passing a numeric value.
| |||||||
| BOOL | BCGetMustFit (t_BarCode* pBarCode) | ||||||
Returns if the barcode must fit into the bounding rectangle. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetMustFit (t_BarCode* pBarCode, BOOL bMustFit) | ||||||
Checks if the barcode fits into the bounding rectangle. This property means that the barcode must fit into the bounding rectangle during drawing. Background: When specifying a fixed module width the barcode width (not the width of the bounding rectangle) changes corresponding to the amount of data characters. In addition, "MustFit" verifies if the module width is less than 1 pixel (which is treated as error in this case) If "MustFit" is activated an error may be produced due to the above reasons during the BCDraw() method.
| |||||||
| BOOL | BCGetOptResolution (t_BarCode* pBarCode) | ||||||
Gets current barcode optimizing behavior. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetOptResolution (t_BarCode* pBarCode, BOOL bOpt) | ||||||
Optimize barcode resolution. If this feature is activated, the module width will be adapted to the resolution of the output device (or output format) by TBarCode. All bars/spaces of a barcode are aligned to the output raster in a way that only full pixels for the bar (space) widths are used. This process depends either on the DPI in the drawing DC (screen or printer driver) or the DPI property in the TBarCode Library. Using optimization the readability of the barcode is (quite) independent from the given resolution (except the resulting bar code will be too small). Using this option is recommended for bitmap formats or low output resolutions (e.g. screen or thermal transfer printers).
| |||||||
| e_SizeMode | BCGetSizeMode (const t_BarCode* pBarCode) | ||||||
Retrieves the mode that determines the barcode size. If operation fails, eSizeMode_Default (= -1) is returned. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSetSizeMode (t_BarCode* pBarCode, e_SizeMode mode) | ||||||
Sets the mode that determines the barcode size. \param[in,out] pBarCode Pointer to barcode structure. \param[in] mode Mode that determines barcode size.
| |||||||
| e_Decoder | BCGetDecoder (t_BarCode* pBarCode) | ||||||
Returns the type of decoder that will be used to read this barcodes. The module width will be optimized for this type of scanner. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSetDecoder (t_BarCode* pBarCode, e_Decoder eDecoder) | ||||||
Sets the type of decoder that will be used to read this barcodes. The module width will be optimized for this type of scanner. \param[in,out] pBarCode Pointer to barcode structure. \param[in] eDecoder Type of scanner.
| |||||||
| DOUBLE | BCGetBarWidthReduction (t_BarCode* pBarCode) | ||||||
Gets current bar-width reduction value. Returns currently adjusted value.
| |||||||
| e_MUnit | BCGetBarWidthReductionUnit (t_BarCode* pBarCode) | ||||||
Gets current bar-width reduction unit. Returns currently adjusted unit.
| |||||||
| ERRCODE | BCSetBarWidthReduction (t_BarCode* pBarCode, DOUBLE dValue, e_MUnit eUnit) | ||||||
Sets bar-width reduction (Pixel-Shaving) in given unit. Specifies the reduction of the bar-widths. The width of a bar in the barcode is reduced by the given value in the given unit. This property is useful when you have to deal with dot gain in the printing process. Example: On inkjet printers the bars appear wider than specified because the ink spreads a little bit. Same with (high) toner saturation on laser printers. You can compensate this effect by setting a bar-width reduction (also called BWR or "Pixel Shaving") to a suitable value. You have to make tests to find optimal settings because the dot gain depends on the printing method and printing surface (paper). The printed module-width is equal to the theoretically optimal module-width reduced by the reduction value.
| |||||||
| LONG | BCGetQuality (t_BarCode* pBarCode, HDC hDC, RECT* pRect) | ||||||
Returns drawing quality estimate of the barcode (in percent) (Windows only). TBarCode computes the expected barcode quality depending on the used output resolution. This value is a measure for the bar width aberration created by the output resolution of the device context (and therefore of the device itself). The higher the quality value - the better.
| |||||||
| ERRCODE | BCSetDCConversion (t_BarCode* pBarCode, BOOL bConvertDC) | ||||||
Activates or deactivates conversion of Windows GDI drawing context (DC). By default all DCs are internally converted, so that logical units are himetric (1/100 mm). This conversion can be turned off if the DC given to the drawing routines already uses himetrics as logical units. Or you can turn off this conversion to use a DC with custom scaling. \param[in] pBarCode Pointer to barcode structure. \param[in] bConvertDC TRUE if DC should be converted. FALSE if conversion should be turned off.
| |||||||
| BOOL | BCGetDCConversion (t_BarCode* pBarCode) | ||||||
Returns TRUE if Windows GDI device context (DC) conversion is activated. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| BOOL | BCGetDrawMode (t_BarCode* pBarCode) | ||||||
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetDrawMode (t_BarCode* pBarCode, BOOL bUseGDIRect) | ||||||
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars. TBarCode normally draw bars in high quality mode that bases on specialized GDI-functionality. Some printer drivers do not handle this method correctly (invisible, too short bars or wrong clipping). If this happens activate the conventional method (bars are drawn as filled rectangles). The conventional method may result in decreased barcode quality for devices with low output resolution.
| |||||||
| e_DrawMode | BCGetDrawModeExt (t_BarCode* pBarCode) | ||||||
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetDrawModeExt (t_BarCode* pBarCode, e_DrawMode eMode) | ||||||
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars.
| |||||||
| ERRCODE | BCDraw (t_BarCode* pBarCode, HDC hDC, RECT* pRect) | ||||||
Draws barcode onto the given Windows device context. Draws the barcode onto the given device context. The coordinates of the bounding rectangle defines the barcode dimensions. The coordinates passed in pRect are interpreted in the current mapping mode of the device context. No special coordinate mapping is performed.
| |||||||
| ERRCODE | BCCopyToClipboard (t_BarCode* pBarCode, LONG nWidth, LONG nHeight) | ||||||
Copies barcode to the Windows clipboard (Windows only). Copies barcode to the Windows clipboard. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format (EMF) is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected.
| |||||||
| ERRCODE | BCCopyToClipboardExA (t_BarCode* pBarCode, HDC hDC, LONG nWidth, LONG nHeight, BOOL fTransparent, LPCSTR szFileName) | ||||||
Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCCopyToClipboardExW (t_BarCode* pBarCode, HDC hDC, LONG nWidth, LONG nHeight, BOOL fTransparent, LPCWSTR szFileName) | ||||||
Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCGetEnhMetaFile (t_BarCode* pBarCode, HENHMETAFILE* phEMF, LONG nWidth, LONG nHeight) | ||||||
Copies barcode into meta file (Windows only).
| |||||||
| ERRCODE | BCGetEnhMetaFileEx (t_BarCode* pBarCode, HENHMETAFILE* phEMF, HDC hDC, LONG nWidth, LONG nHeight, BOOL fTransparent) | ||||||
Copies barcode into meta file (extended version, Windows only).
| |||||||
| ERRCODE | BCSaveImageA (t_BarCode* pBarCode, LPCSTR lpszFileName, e_IMType eImageType, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
Saves the barcode to an image-file (Windows only). Saves the barcode to an image-file (format Bmp, Jpg, Png, Eps, Emf...). The values of lXSize and lYSize should be increased, if the barcode is not readable. The values of dXRes and dYRes can affect printing size when printing from graphic- or painting programs. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCSaveImageW (t_BarCode* pBarCode, LPCWSTR lpszFileName, e_IMType eImageType, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
Saves the barcode to an image-file (Windows only). Saves the barcode to an image-file (format Bmp, Jpg, Png, Eps, Emf...). The values of lXSize and lYSize should be increased, if the barcode is not readable. The values of dXRes and dYRes can affect printing size when printing from graphic- or painting programs. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCSaveImageExA (t_BarCode* pBarCode, HDC hDC, LPCSTR lpszFileName, e_IMType eImageType, LONG lQuality, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
Saves barcode to an image-file (extended version, Windows only). Saves the content of the barcode object as image-file with respect to a specified device context (if not needed hDC can be set to 0). The values of lXSize and lYSize should be increased, if the barcode is not readable or if the data density is high. The values of dXRes and dYRes can affect the printing size when printing from graphic- or painting programs. The image quality sets the compression algorithm (depending on the image type). With vector-EPS files you can choose between using Windows fonts (nQuality = 0) and using Postscript compatible fonts (nQuality = 1). A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCSaveImageExW (t_BarCode* pBarCode, HDC hDC, LPCWSTR lpszFileName, e_IMType eImageType, LONG lQuality, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
Saves barcode to an image-file (extended version, Windows only). Saves the content of the barcode object as image-file with respect to a specified device context (if not needed hDC can be set to 0). The values of lXSize and lYSize should be increased, if the barcode is not readable or if the data density is high. The values of dXRes and dYRes can affect the printing size when printing from graphic- or painting programs. The image quality sets the compression algorithm (depending on the image type). With vector-EPS files you can choose between using Windows fonts (nQuality = 0) and using Postscript compatible fonts (nQuality = 1). A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| |||||||
| ERRCODE | BCSaveImageToBuffer (t_BarCode* pBarCode, LPBYTE* lpBuffer, e_IMType eImageType, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
The values of XSize and YSize should be increased, if the barcode is not readable or requires a high printing resolution. The values of XRes and YRes can affect the printing size when printing from graphic- or painting programs (but not when printing from the browser!). The buffer will be allocated on the global heap. Retrieve the buffer size in Bytes with GlobalSize((HGLOBAL)GlobalHandle(szBuffer)). It is recommended to lock the buffer before reading with pMem = GlobalLock (hMem) and unlock it afterwards (GlobalUnlock(hMem)). When no longer needed the buffer must be released by calling GlobalFreePtr(buffer) (WINDOWSX.h macro).
| |||||||
| ERRCODE | BCSaveImageToBufferEx (t_BarCode* pBarCode, HDC hDC, LPBYTE* lpBuffer, e_IMType eImageType, LONG lQuality, LONG lXSize, LONG lYSize, DOUBLE dXRes, DOUBLE dYRes) | ||||||
Saves barcode as image into a memory buffer (extended version, Windows only). Like BCSaveImageToBuffer() with the additional possibility to specify the image quality. For a description refer to BCSaveImageEx().
| |||||||
| BOOL | BCIsImageMagickAvailable () | ||||||
Checks whether ImageMagick-Plug-In is available.
| |||||||
| ERRCODE | BCBitmapToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as an image file. The file name's suffix determines the image format, e.g. 'xxx.gif'. Supported image formats are: BMP, GIF, JPG, PNG and TIF. All barcodes are supported. Text output is not supported.
| |||||||
| ERRCODE | BCBitmapToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as an image file. The file name's suffix determines the image format, e.g. 'xxx.gif'. Supported image formats are: BMP, GIF, JPG, PNG and TIF. All barcodes are supported. Text output is not supported.
| |||||||
| ERRCODE | BCBitmapToMemoryA (t_BarCode* pBarCode, VOID* pHandle, LPCSTR pszFormat, INT* pnSize, LPCRECT pRect) | ||||||
| Writes barcode in an image format to memory block. All barcodes are supported. Text output is not supported. \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in] pszFormat The image format (" BMP" , "GIF", "JPG" , "PNG" or "TIF") \param[in,out] pnSize The size of the allocated memory block. Contains the required size after the function call.
| |||||||
| ERRCODE | BCBitmapToMemoryW (t_BarCode* pBarCode, VOID* pHandle, LPCWSTR pszFormat, INT* pnSize, LPCRECT pRect) | ||||||
| Writes barcode in an image format to memory block. All barcodes are supported. Text output is not supported. \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in] pszFormat The image format (" BMP" , "GIF", "JPG" , "PNG" or "TIF") \param[in,out] pnSize The size of the allocated memory block. Contains the required size after the function call.
| |||||||
| e_PCLMode | BCGetPCLMode (const t_BarCode* pBarcode) | ||||||
Retrieves the PCL output mode.
| |||||||
| VOID | BCSetPCLMode (t_BarCode* pBarcode, e_PCLMode mode) | ||||||
| Sets the PCL output mode. By default functions, such as BCPCLToFile(), create PCL Level 5 output which includes HP-GL/2 drawing operations. HP-GL/2 is part of PCL Level 5 and thus should be supported by all PCL Level 5 compatible printers. Though, some printers and some conversion tools cannot handle HP-GL/2 instructions correctly. With this function the HP-GL/2 output generation can be turned off. But you need to be aware that some barcode types, such as MAXICODE, can only be drawn when with HP-GL/2 enabled.
| |||||||
| ERRCODE | BCPCLToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCPCLToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCPCLToFileExtA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect, BOOL bRelPos) | ||||||
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCPCLToFileExtW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect, BOOL bRelPos) | ||||||
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCPCLToMemory (t_BarCode* pBarCode, VOID* pHandle, INT nSize, LPCRECT pRect) | ||||||
Writes barcode as PCL (Level 5) into memory block. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCPCLToMemoryExt (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect, BOOL bRelPos) | ||||||
| Writes barcode as PCL Level 5 into memory block (extended version). In addition to BCPCLToMemory() the required output resolution can be specified. Beside this, the parameter bRelPos switches between absolute or relative positioning. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards. \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in,out] pnSize Size of memory block as allocated. Contains required size after function call. \param[in] pRect Bounding rectangle [1/1000 mm]. \param[in] bRelPos Relative or absolute positioning. - true: Relative positioning is used - false: Absolute positioning is used
| |||||||
| ERRCODE | BCPDFToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as a PDF file. \param[in] pBarCode Pointer to barcode structure. \param[in] szFilename Path and name of file. \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| |||||||
| ERRCODE | BCPDFToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as a PDF file. \param[in] pBarCode Pointer to barcode structure. \param[in] szFilename Path and name of file. \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| |||||||
| ERRCODE | BCPDFToMemory (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect) | ||||||
| Writes barcode as PDF into a memory-block \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in, out] pnSize Size of memory block as allocated. Contains required size after function call (including a terminating 0-byte). \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| |||||||
| ERRCODE | BCPDFFragmentToMemory (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect) | ||||||
| Writes barcode as PDF segment into a memory-block \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in, out] pnSize Size of memory block as allocated. Contains required size after function call (including a terminating 0-byte). \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| |||||||
| ERRCODE | BCPostscriptToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as a Postscript-file. Saves barcode (in EPS-format - Encapsulated Postscript) to a file. The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| |||||||
| ERRCODE | BCPostscriptToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
| Saves barcode as a Postscript-file. Saves barcode (in EPS-format - Encapsulated Postscript) to a file. The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| |||||||
| ERRCODE | BCPostscriptToMemory (t_BarCode* pBarCode, VOID* pHandle, INT nSize, LPCRECT pRect) | ||||||
| Writes barcode (Postscript) into memory-block. Writes barcode into the specified memory block. The barcode is represented in vectorized PostScript (no bitmaps!). The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| |||||||
| ERRCODE | BCPostscriptToMemoryExt (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect, BOOL bIncludeMacros) | ||||||
| Writes barcode (Postscript) into memory-block (extended version). Saves barcode in a memory block. The barcode is represented in vectorized PostScript (no bitmaps!). This function works like BCPostscriptToMemory() but allows additional specification of the required output resolution. Beside this it can be selected, if barcode-specific macros are to be included into the generated Postscript code. The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| |||||||
| ERRCODE | BCGetPostscriptMacrosA (LPSTR pszMacros, INT* pnSize) | ||||||
| Returns Postscript macros of the Postscript code as a zero-terminated string. This function is useful when embedding multiple barcodes in a single Postscript document using BCPostscriptToMemoryExt(). The Postscript codes returned by BCPostscriptToMemory() or BCPostscriptToMemoryExt() internally use a series of Postscript macros. These macros are defined at the begin of each barcode. When having several barcodes in a single Postscript document the macros need to be defined only once. To achieve this the Postscript code that defines the macros can be retrieved with this function. The barcodes can then be generated using BCPostscriptToMemoryExt() and setting bIncludeMacros to false. param[in,out] pszMacros Pointer to a memory block. param[in,out] pnSize Size of memory block as allocated. Contains required size after function call.
| |||||||
| ERRCODE | BCGetPostscriptMacrosW (LPWSTR pszMacros, INT* pnSize) | ||||||
| Returns Postscript macros of the Postscript code as a zero-terminated string. This function is useful when embedding multiple barcodes in a single Postscript document using BCPostscriptToMemoryExt(). The Postscript codes returned by BCPostscriptToMemory() or BCPostscriptToMemoryExt() internally use a series of Postscript macros. These macros are defined at the begin of each barcode. When having several barcodes in a single Postscript document the macros need to be defined only once. To achieve this the Postscript code that defines the macros can be retrieved with this function. The barcodes can then be generated using BCPostscriptToMemoryExt() and setting bIncludeMacros to false. param[in,out] pszMacros Pointer to a memory block. param[in,out] pnSize Size of memory block as allocated. Contains required size after function call.
| |||||||
| BOOL | BCGetEpsSubstwDeviceFonts (t_BarCode* pBarCode) | ||||||
Gets current setting for substitute font names for EPS. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSetEpsSubstwDeviceFonts (t_BarCode* pBarCode, BOOL bSubwDevFnts) | ||||||
Activates the substitution of font names for EPS. Substitutes Windows font-names with Postscript-compatible fonts in functions BCSaveImage() and BCSaveImageExt() when using EPS Vector format.
| |||||||
| ERRCODE | BCSVGToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a SVG-file. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCSVGToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a SVG-file. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCSVGToMemory (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect) | ||||||
Writes barcode (SVG) into memory-block. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| |||||||
| ERRCODE | BCAIToFileA (t_BarCode* pBarCode, LPCSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a AI-file. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| |||||||
| ERRCODE | BCAIToFileW (t_BarCode* pBarCode, LPCWSTR szFilename, LPCRECT pRect) | ||||||
Saves barcode as a AI-file. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| |||||||
| ERRCODE | BCAIToMemory (t_BarCode* pBarCode, VOID* pHandle, INT* pnSize, LPCRECT pRect) | ||||||
Writes barcode (Adobe Illustrator Format) into memory-block. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| |||||||
| fn_DrawRow | BCGetFuncDrawRow (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a single row of a barcode. Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawRow (t_BarCode* pBarCode, fn_DrawRow fn) | ||||||
| Sets the callback function for drawing a single row of a barcode. these functions informs TBarCode that drawing of a single barcode row (one row for linear barcodes, multiple rows for 2D or stacked codes) is done by the specified function. The specified function will be called from BCDraw() instead of the built-in row-drawing functionality. Default: no callback function is used. Use this function to implement your custom drawing routines for specialized output requirements.
| |||||||
| fn_DrawBar | BCGetFuncDrawBar (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a bar. Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawBar (t_BarCode* pBarCode, fn_DrawBar fn) | ||||||
| Sets call-back function for drawing the bars of a barcode. these functions informs TBarCode that drawing of the bars (for linear barcodes) is done by the specified function. Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| |||||||
| fn_DrawColoredBar | BCGetFuncDrawColoredBar (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a colored bar. Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawColoredBar (t_BarCode* pBarCode, fn_DrawColoredBar fn) | ||||||
| Sets call-back function for drawing colored bars. these functions informs TBarCode that drawing of colored bars (e.g. the Swiss cross in Swiss QR Code) is done by the specified function. Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| |||||||
| fn_DrawTextA | BCGetFuncDrawTextA (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a text Returns currently adjusted function pointer.
| |||||||
| fn_DrawTextW | BCGetFuncDrawTextW (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a text Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawTextA (t_BarCode* pBarCode, fn_DrawTextA fn) | ||||||
| ERRCODE | BCSetFuncDrawTextW (t_BarCode* pBarCode, fn_DrawTextW fn) | ||||||
| fn_DrawRing | BCGetFuncDrawRing (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a MaxiCode finder ring. Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawRing (t_BarCode* pBarCode, fn_DrawRing fn) | ||||||
| Sets call-back function for drawing the MaxiCode finder rings. This function informs the TBarCode drawing functions that drawing of the MaxiCode finders is done by a callback function. Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| |||||||
| fn_DrawHexagon | BCGetFuncDrawHexagon (t_BarCode* pBarCode) | ||||||
Gets call-back function for drawing a MaxiCode hexagon. Returns currently adjusted function pointer.
| |||||||
| ERRCODE | BCSetFuncDrawHexagon (t_BarCode* pBarCode, fn_DrawHexagon fn) | ||||||
| Sets call-back function for drawing the MaxiCode finder rings. This function informs the TBarCode drawing functions that drawing of the MaxiCode hexagons is done by a callback function. Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| |||||||
| LPVOID | BCGetCBData (t_BarCode* pBarCode) | ||||||
| Gets the user-defined data that is passed to the callback functions. More... | |||||||
| VOID | BCSetCBData (t_BarCode* pBarCode, LPVOID pData) | ||||||
| Sets the user-defined data that is passed to the callback functions. More... | |||||||
| ERRCODE | BCDrawCB (t_BarCode* pBarCode, HDC hDC, RECT* pRect) | ||||||
Callback version of barcode draw function. Call this function instead of BCDraw() if you want to use your own drawing routines (e.g. for generating a barcode on special devices or in special output formats). - fn_DrawRow is used for drawing the bars, see BCSetFuncDrawRow() - fn_DrawBar is used for drawing the bars, see BCSetFuncDrawBar() - fn_DrawText is used for drawing the human readable text, see BCSetFuncDrawText()
| |||||||
| LPCSTR | BCGetMetaDataA (t_BarCode* pBarCode) | ||||||
Returns meta-representation of a barcode. This function provides access to the meta-data of the current barcode row (refer to BCSetFuncDrawRow()). The result of this function is only valid, when it is called in the scope of your callback function (set by BCSetFuncDrawRow()).
| |||||||
| LPCWSTR | BCGetMetaDataW (t_BarCode* pBarCode) | ||||||
Returns meta-representation of a barcode. This function provides access to the meta-data of the current barcode row (refer to BCSetFuncDrawRow()). The result of this function is only valid, when it is called in the scope of your callback function (set by BCSetFuncDrawRow()).
| |||||||
| COLORREF | BCGetColorFromMetaData (t_BarCode* pBarCode, INT chMeta) | ||||||
Converts a single meta character returned by BCGetMetaData into a corresponding color value. If the given meta character is a placeholder for a color value, the corresponding RGB color value is returned. For all other meta characters the function returns the invalid color value BC_USEDEFAULT (0xFFFFFFFF) \param[in] pBarCode Pointer to barcode structure. \param[in] chMeta Meta character.
| |||||||
| VOID | BCGetErrorTextA (ERRCODE eCode, LPSTR szText, size_t nSize) | ||||||
Returns error text to given error code. Returns the corresponding error text for a given error code. The returned string will be null-terminated.
| |||||||
| VOID | BCGetErrorTextW (ERRCODE eCode, LPWSTR szText, size_t nSize) | ||||||
Returns error text to given error code. Returns the corresponding error text for a given error code. The returned string will be null-terminated.
| |||||||
| VOID | BCGetErrorTextExtA (t_BarCode* pBarCode, ERRCODE eCode, LPSTR szText, size_t nSize) | ||||||
Returns extended error text to given error code. Returns the detailed error text for a given error code. The returned string will be null-terminated and contains the error code, the error description and the source of the error (character position) if available.
| |||||||
| VOID | BCGetErrorTextExtW (t_BarCode* pBarCode, ERRCODE eCode, LPWSTR szText, size_t nSize) | ||||||
Returns extended error text to given error code. Returns the detailed error text for a given error code. The returned string will be null-terminated and contains the error code, the error description and the source of the error (character position) if available.
| |||||||
| INT | BCGetInvalidDataPos (t_BarCode* pBarCode) | ||||||
Gets position of invalid character in input data. If BCCheck() or BCCreate() fails, this function allows you to determine the position of the first invalid character within the barcode text (see BCSetText()). Note: The returned position may not be accurate when using Escape Sequences in the input data. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LONG | BCGet_PDF417_Rows (t_BarCode* pBarCode) | ||||||
Gets number of PDF417 rows. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_Rows (t_BarCode* pBarCode, LONG nRows) | ||||||
Sets number of PDF417 rows. Sets the number of graphic rows for PDF417 to a fixed value. If not set, the number of rows is calculated automatically by TBarCode (this is the default).
| |||||||
| LONG | BCGet_PDF417_Columns (t_BarCode* pBarCode) | ||||||
Gets number of PDF417 columns. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_Columns (t_BarCode* pBarCode, LONG nColumns) | ||||||
Sets the number of PDF417 columns. Sets the number of graphic columns [1...30] for PDF417 to a fixed value. If not set, the number of columns is calculated automatically by TBarCode (this is the default).
| |||||||
| LONG | BCGet_PDF417_ECLevel (t_BarCode* pBarCode) | ||||||
Gets current PDF417 error correction level. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_ECLevel (t_BarCode* pBarCode, LONG nLevel) | ||||||
Sets PDF417 error correction level. Set the "Error Correction Level" for PDF417 to a fixed value. Possible values are [0...8] where 0 means only error recognition (no EC) and 8 means the highest level of EC. If not set, the error correction level is chosen automatically by TBarCode.
| |||||||
| LONG | BCGet_PDF417_RowHeight (t_BarCode* pBarCode) | ||||||
Gets PDF417 row-height. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_RowHeight (t_BarCode* pBarCode, LONG nHeight) | ||||||
Sets PDF417 row height to a fixed value. Sets the height of a PDF417 row tow a fixed value [1/1000 mm]. If not set, the height is calculated automatically by TBarCode with respect to the bounding rectangle passed to BCDraw (..).
| |||||||
| LPCSTR | BCGet_PDF417_RowColRatioA (t_BarCode* pBarCode) | ||||||
Gets PDF417 row to column ratio. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_PDF417_RowColRatioW (t_BarCode* pBarCode) | ||||||
Gets PDF417 row to column ratio. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_RowColRatioA (t_BarCode* pBarCode, LPCSTR szRatio) | ||||||
Sets PDF417 row to column ratio to a fixed value. Sets the ratio between PDF417-rows and PDF417-columns. Does only work, if neither the value of PDF417-rows (BCSet_PDF417_Rows()) nor PDF417-columns (BCSet_PDF417_Columns()) are set to a constant value. If not set, the row:column ratio is chosen automatically by TBarCode (default).
| |||||||
| ERRCODE | BCSet_PDF417_RowColRatioW (t_BarCode* pBarCode, LPCWSTR szRatio) | ||||||
Sets PDF417 row to column ratio to a fixed value. Sets the ratio between PDF417-rows and PDF417-columns. Does only work, if neither the value of PDF417-rows (BCSet_PDF417_Rows()) nor PDF417-columns (BCSet_PDF417_Columns()) are set to a constant value. If not set, the row:column ratio is chosen automatically by TBarCode (default).
| |||||||
| LONG | BCGet_PDF417_CodeWords (t_BarCode* pBarCode) | ||||||
Gets number of PDF417 code words. Gets number of PDF417 code words.
| |||||||
| e_PDFMode | BCGet_PDF417_EncodingMode (t_BarCode* pBarCode) | ||||||
Gets the current PDF417 encoding mode. Gets the current PDF417 encoding mode, which can be default or binary. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_PDF417_EncodingMode (t_BarCode* pBarCode, e_PDFMode eMode) | ||||||
Sets PDF417 encoding mode. Sets the PFD417 encoding mode. If the mode is set to default the generation algorithm tries to find an optimum encoding. If binary data is encoded, binary encoding is most of the time the better choice.
| |||||||
| LONG | BCGet_PDF417_SegIndex (t_BarCode* pBarCode) | ||||||
Gets current Macro-PDF417 segment index. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_SegIndex (t_BarCode* pBarCode, LONG nSegInx) | ||||||
| Sets Macro-PDF417 segment index. Index of the actual data segment in the symbol chain. Begin with 1 and increase for each additional symbol in the data chain. Macro PDF will be enabled only if the Segment index and the File ID are set. Default: Macro PDF is disabled. PDF417 allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Macro PDF Control Block" carries additional control information that enables the reading device to reconstruct the data of all symbols in the correct order Macro PDF functionality is also available for MicroPDF417.
| |||||||
| LPCSTR | BCGet_PDF417_FileIDA (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 FileID. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_PDF417_FileIDW (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 FileID. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_FileIDA (t_BarCode* pBarCode, LPCSTR szFileID) | ||||||
| Sets Macro PDF417 FileID. The File-ID identifies all symbols, which belong to the same data chain. For reassembling, all data blocks having the same File-ID are concatenated in the order of increasing segment index. Macro PDF will be enabled only if the Segment-index and the File-ID are set. Default: MacroPDF is disabled.
| |||||||
| ERRCODE | BCSet_PDF417_FileIDW (t_BarCode* pBarCode, LPCWSTR szFileID) | ||||||
| Sets Macro PDF417 FileID. The File-ID identifies all symbols, which belong to the same data chain. For reassembling, all data blocks having the same File-ID are concatenated in the order of increasing segment index. Macro PDF will be enabled only if the Segment-index and the File-ID are set. Default: MacroPDF is disabled.
| |||||||
| BOOL | BCGet_PDF417_SegLast (t_BarCode* pBarCode) | ||||||
Returns if this is the last symbol within a Macro PDF417 symbol-chain. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_SegLast (t_BarCode* pBarCode, BOOL bSegLast) | ||||||
Marks the actual symbol as the last one within the Macro PDF417 symbol chain. Marks the current symbol as the last one within the actual symbol chain. This feature is used when generating Macro PDF417. Some applications require the segment count to be set for identifying the last bar code in the symbol chain.
| |||||||
| LPCSTR | BCGet_PDF417_FileNameA (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 File Name. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_PDF417_FileNameW (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 File Name. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_FileNameA (t_BarCode* pBarCode, LPCSTR szFileName) | ||||||
| Sets Macro PDF417 File Name (optional). Specifies file name (alphanumeric, variable length) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| ERRCODE | BCSet_PDF417_FileNameW (t_BarCode* pBarCode, LPCWSTR szFileName) | ||||||
| Sets Macro PDF417 File Name (optional). Specifies file name (alphanumeric, variable length) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| LONG | BCGet_PDF417_SegCount (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 segment count. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_SegCount (t_BarCode* pBarCode, LONG nSegCount) | ||||||
| Sets Macro PDF417 segment count (optional). Specifies total number of bar codes in the symbol chain (numeric). Optional field to be encoded into the Macro PDF control header block. Some applications require this field to be set (instead or in combination with the last segment marker).
| |||||||
| LONG | BCGet_PDF417_TimeStamp (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 Time Stamp. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_TimeStamp (t_BarCode* pBarCode, LONG nTimeStamp) | ||||||
| Sets Macro PDF417 Time Stamp (optional). Specifies time stamp (elapsed time in seconds since January 1, 1970 00:00 GMT) (numeric) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| LPCSTR | BCGet_PDF417_SenderA (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 Sender. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_PDF417_SenderW (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 Sender. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_PDF417_SenderA (t_BarCode* pBarCode, LPCSTR szSender) | ||||||
| Sets Macro PDF417 Sender (optional). Specifies sender (alphanumeric, variable length field) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| ERRCODE | BCSet_PDF417_SenderW (t_BarCode* pBarCode, LPCWSTR szSender) | ||||||
| Sets Macro PDF417 Sender (optional). Specifies sender (alphanumeric, variable length field) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| LPCSTR | BCGet_PDF417_AddresseeA (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 Addressee. Returns currently adjusted value
| |||||||
| LPCWSTR | BCGet_PDF417_AddresseeW (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 Addressee. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_PDF417_AddresseeA (t_BarCode* pBarCode, LPCSTR szAddressee) | ||||||
| Sets Macro PDF417 Addressee (optional). Specifies addressee (alphanumeric, variable length field) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| ERRCODE | BCSet_PDF417_AddresseeW (t_BarCode* pBarCode, LPCWSTR szAddressee) | ||||||
| Sets Macro PDF417 Addressee (optional). Specifies addressee (alphanumeric, variable length field) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| LONG | BCGet_PDF417_FileSize (t_BarCode* pBarCode) | ||||||
Gets Macro PDF417 File Size. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_PDF417_FileSize (t_BarCode* pBarCode, LONG nFileSize) | ||||||
| Sets Macro PDF417 File Size (optional). Specifies total number of Bytes encoded (numeric, variable length field) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| LONG | BCGet_PDF417_CheckSum (t_BarCode* pBarCode) | ||||||
\param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_PDF417_CheckSum (t_BarCode* pBarCode, LONG nCheckSum) | ||||||
| Sets Macro PDF417 Check Sum (optional). Sets 16-Bit CRC checksum (using CCITT-16 polynomial x16 + x12 + x5 + 1 over the entire data) Optional field to be encoded into the Macro PDF control header block. Default: unused.
| |||||||
| e_MPDFMode | BCGet_MPDF417_Mode (t_BarCode* pBarCode) | ||||||
Gets Micro PDF encoding mode. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_MPDF417_Mode (t_BarCode* pBarCode, e_MPDFMode eMode) | ||||||
Sets Micro PDF encoding mode. This option adjusts how data is encoded as MicroPDF417 and if the scanner should emulate Code-128. In most cases the Default mode is the best choice. Often the scanner hardware does not support all modes listed here - check with your reading device first. If not set explicitly, TBarCode analyzes input data. Text, numeric or binary compaction mode will be switched automatically in order to produce the smallest possible symbol.
| |||||||
| e_MPDFVers | BCGet_MPDF417_Version (t_BarCode* pBarCode) | ||||||
Gets Micro PDF Version (symbol size). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_MPDF417_Version (t_BarCode* pBarCode, e_MPDFVers eVersion) | ||||||
Sets Micro PDF Version (symbol size). The MicroPDF Version adjusts the number of data-columns and data-rows of the symbol; therefore it specifies the size of the symbol. You can specify versions between 1x11 to 4x44 (horizontal data-columns x vertical data-rows). If not set explicitly, TBarCode generates the smallest possible symbol by analyzing the input data and choosing the suitable version automatically.
| |||||||
| LPCSTR* | BCGet_MPDF417_VersionsA () | ||||||
Returns all possible MicroPDF417 versions (symbol sizes) in an array.
| |||||||
| LPCWSTR* | BCGet_MPDF417_VersionsW () | ||||||
Returns all possible MicroPDF417 versions (symbol sizes) in an array.
| |||||||
| LONG | BCGet_MPDF417_VersionCount () | ||||||
Returns number of implemented MicroPDF417 versions.
| |||||||
| LONG | BCGet_Maxi_Mode (t_BarCode* pBarCode) | ||||||
Gets current encoding mode for MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_Maxi_Mode (t_BarCode* pBarCode, LONG nMode) | ||||||
Specifies the operating mode for encoding data. Specifies the operating mode for encoding data. Default is Mode 4. \param[in] pBarCode Pointer to barcode structure. \param[in] nMode Used encoding mode [2..5] - Mode 2: SCM Numeric - Structured Carrier Message (Postal Code only numeric, up to 9 digits) - Mode 3: SCM Alphanumeric - Structured Carrier Message (Postal Code alphanumeric, up to 6 characters) - Mode 4: For numeric and alphanumeric character sequences (Standard Error Correction). This is the default - Mode 5: Full EEC - like Mode 4, but with Enhanced Error Correction (safer, but less usable data)
| |||||||
| LONG | BCGet_Maxi_AppendSum (t_BarCode* pBarCode) | ||||||
Gets total number of symbols in "Structured Append" mode of MaxiCode. Returns currently adjusted value \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_Maxi_Append (t_BarCode* pBarCode, LONG nSum, LONG nIndex) | ||||||
| Activates MaxiCode "Structured Append" feature. MaxiCode allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information that enables the reading device to reconstruct the data of all symbols in the correct order. these functions sets the total number of symbols and the index of the actual MaxiCode symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. \param[in] pBarCode Pointer to barcode structure. \param[in] nSum Total number of symbols [2..8]. \param[in] nIndex Index of current symbol [1..8].
| |||||||
| LONG | BCGet_Maxi_AppendIndex (t_BarCode* pBarCode) | ||||||
Gets index of current symbol in "Structured Append" mode of MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LONG | BCGet_Maxi_UnderCut (t_BarCode* pBarCode) | ||||||
Gets current undercut value of MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_Maxi_UnderCut (t_BarCode* pBarCode, LONG nUndercut) | ||||||
Specifies the undercut value of MaxiCode. This value influences the diameter of the barcode items (which are small hexagons in case of MaxiCode). Modify this value, if reading problems with the used output medium occur.
| |||||||
| BOOL | BCGet_Maxi_UsePreamble (t_BarCode* pBarCode) | ||||||
Determines whether the usage of the "Preamble" is activated. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_Maxi_UsePreambleA (t_BarCode* pBarCode, BOOL bUse, LPCSTR szDate) | ||||||
Activates the usage of the "Preamble" in MaxiCode. Specifies whether preamble functionality ("[)>..." will be encoded in the symbol header) should be activated. This is relevant in particular Open System Standards only. Refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] bUse Use preamble ("[)>..."). - true: Activate preamble - false: Preamble is not used \param[in] szDate Specifies the value for the year ["00"..."99"] (the last two digits - the century - are used). This date will be inserted automatically into the data stream on a predefined place (before the encoded data). The parameter bUse must be set to true!
| |||||||
| ERRCODE | BCSet_Maxi_UsePreambleW (t_BarCode* pBarCode, BOOL bUse, LPCWSTR szDate) | ||||||
Activates the usage of the "Preamble" in MaxiCode. Specifies whether preamble functionality ("[)>..." will be encoded in the symbol header) should be activated. This is relevant in particular Open System Standards only. Refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] bUse Use preamble ("[)>..."). - true: Activate preamble - false: Preamble is not used \param[in] szDate Specifies the value for the year ["00"..."99"] (the last two digits - the century - are used). This date will be inserted automatically into the data stream on a predefined place (before the encoded data). The parameter bUse must be set to true!
| |||||||
| LPCSTR | BCGet_Maxi_PreambleDateA (t_BarCode* pBarCode) | ||||||
Returns the current date encoded in the MaxiCode preamble. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCWSTR | BCGet_Maxi_PreambleDateW (t_BarCode* pBarCode) | ||||||
Returns the current date encoded in the MaxiCode preamble. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCSTR | BCGet_Maxi_SCMServClassA (t_BarCode* pBarCode) | ||||||
Gets service class of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCWSTR | BCGet_Maxi_SCMServClassW (t_BarCode* pBarCode) | ||||||
Gets service class of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCSTR | BCGet_Maxi_SCMCountryCodeA (t_BarCode* pBarCode) | ||||||
Gets country code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCWSTR | BCGet_Maxi_SCMCountryCodeW (t_BarCode* pBarCode) | ||||||
Gets country code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCSTR | BCGet_Maxi_SCMPostalCodeA (t_BarCode* pBarCode) | ||||||
Gets postal code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| LPCWSTR | BCGet_Maxi_SCMPostalCodeW (t_BarCode* pBarCode) | ||||||
Gets postal code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| ERRCODE | BCSet_Maxi_SCMA (t_BarCode* pBarCode, LPCSTR szServiceClass, LPCSTR szCountryCode, LPCSTR szPostalCode) | ||||||
Set MaxiCode structured carrier message (SCM). For a detailed description refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] szServiceClass Service class ["000"..."999"]. Specify the Service Class. Used in the modes 2 and 3 (SCM). \param[in] szCountryCode Country Code ["000"..."999"]. Used in the modes 2 and 3 (SCM). \param[in] szPostalCode The Postal Code - used in the modes 2 and 3 (SCM - " Structured Carrier Message"). String with altogether 9 digits (or other characters), depends on MAXI_Mode.
| |||||||
| ERRCODE | BCSet_Maxi_SCMW (t_BarCode* pBarCode, LPCWSTR szServiceClass, LPCWSTR szCountryCode, LPCWSTR szPostalCode) | ||||||
Set MaxiCode structured carrier message (SCM). For a detailed description refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] szServiceClass Service class ["000"..."999"]. Specify the Service Class. Used in the modes 2 and 3 (SCM). \param[in] szCountryCode Country Code ["000"..."999"]. Used in the modes 2 and 3 (SCM). \param[in] szPostalCode The Postal Code - used in the modes 2 and 3 (SCM - " Structured Carrier Message"). String with altogether 9 digits (or other characters), depends on MAXI_Mode.
| |||||||
| e_DMSizes | BCGet_DM_Size (t_BarCode* pBarCode) | ||||||
Gets currently adjusted Data Matrix symbol size. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_DM_Size (t_BarCode* pBarCode, e_DMSizes eSize) | ||||||
Sets Data Matrix symbol size. Specifies the size of the symbol. The size is given in rows and columns and can be between 10 x 10 and 144 x 144 for squares or 8 x 18 and 26 x 64 for rectangles. The Data Matrix Rectangular Extension (DMRE) specifies the matrix range from 8 x 48 to 26 x 64.
| |||||||
| BOOL | BCGet_DM_Rectangular (t_BarCode* pBarCode) | ||||||
Gets if rectangular Data Matrix sizes are preferred. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_DM_Rectangular (t_BarCode* pBarCode, BOOL bRect) | ||||||
Switches between square or rectangular Data Matrix symbols. Per default TBarCode computes square Data Matrix symbols. Change this behavior with this function.
| |||||||
| e_DMFormat | BCGet_DM_Format (t_BarCode* pBarCode) | ||||||
Gets the current Data Matrix Encoding Format. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_DM_Format (t_BarCode* pBarCode, e_DMFormat eFormat) | ||||||
Specifies Data Matrix encoding format. Specifies the generated code format. Per default TBarCode uses the default encoding scheme.
| |||||||
| BOOL | BCGet_DM_EnforceBinaryEncoding (t_BarCode* pBarCode) | ||||||
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| |||||||
| ERRCODE | BCSet_DM_EnforceBinaryEncoding (t_BarCode* pBarCode, BOOL bEnforceBinary) | ||||||
Determines whether Data Matrix shall be encoded in binary mode or not.
| |||||||
| LONG | BCGet_DM_AppendSum (t_BarCode* pBarCode) | ||||||
Gets the adjusted total number of symbols in Data Matrix Structured Append mode. Returns currently adjusted value
| |||||||
| LONG | BCGet_DM_AppendIndex (t_BarCode* pBarCode) | ||||||
Gets the current index of the symbol in Data Matrix Structured Append mode. Returns currently adjusted value.
| |||||||
| LONG | BCGet_DM_AppendFileID (t_BarCode* pBarCode) | ||||||
Gets the adjusted File-ID in Data Matrix Structured Append mode. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_DM_Append (t_BarCode* pBarCode, LONG nSum, LONG nIndex, LONG nFileID) | ||||||
Activates Data Matrix "Structured Append" mode. Data Matrix allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. This function sets the total number of symbols and the index of the actual Data Matrix symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| |||||||
| BOOL | BC_DM_IsAppendAllowed (e_DMFormat eFormat) | ||||||
| Returns if structured append is allowed depending on given format. Returns: TRUE if append is allowed, otherwise FALSE. | |||||||
| LPCSTR* | BCGetDataMatrixSizesA () | ||||||
Returns implemented Data Matrix symbol sizes. Returns all possible Data Matrix symbol-sizes in an array.
| |||||||
| LPCWSTR* | BCGetDataMatrixSizesW () | ||||||
Returns implemented Data Matrix symbol sizes. Returns all possible Data Matrix symbol-sizes in an array.
| |||||||
| LONG | BCGetDataMatrixSizesCount () | ||||||
Returns the number of supported Data Matrix symbol-sizes. Returns the number of possible symbol sizes for Data Matrix.
| |||||||
| e_DMSizes* | BCGetDataMatrixSizeListForType (e_BarCType eBCType) | ||||||
Returns implemented Data Matrix symbol sizes for given barcode type. Returns all possible Data Matrix symbol sizes for given barcode type in an array.
| |||||||
| LONG | BCGetDataMatrixSizesCountForType (e_BarCType eBCType) | ||||||
Returns the number of supported Data Matrix symbol-sizes for of given barcode type. Returns the number of possible symbol sizes for Data Matrix for given barcode type.
| |||||||
| e_AztecSizes | BCGet_Aztec_Size (t_BarCode* pBarCode) | ||||||
Gets currently adjusted Aztec Code symbol size. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_Aztec_Size (t_BarCode* pBarCode, e_AztecSizes eSize) | ||||||
Sets Aztec Code symbol size. Specifies the size of the symbol. The size is given in rows and columns and can be between 15 x 15 and 151 x 151. If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| |||||||
| BOOL | BCGet_Aztec_EnforceBinaryEncoding (t_BarCode* pBarCode) | ||||||
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| |||||||
| ERRCODE | BCSet_Aztec_EnforceBinaryEncoding (t_BarCode* pBarCode, BOOL bEnforceBinary) | ||||||
Determines whether Aztec Code shall be encoded in binary mode or not.
| |||||||
| e_AztecFormat | BCGet_Aztec_Format (t_BarCode* pBarCode) | ||||||
Gets the current Aztec Code Encoding Format. Returns currently adjusted value
| |||||||
| LPCSTR | BCGet_Aztec_FormatSpecifierA (t_BarCode* pBarCode) | ||||||
Gets the current Aztec Code Encoding Format specifier for industry format. Returns currently adjusted value
| |||||||
| LPCWSTR | BCGet_Aztec_FormatSpecifierW (t_BarCode* pBarCode) | ||||||
Gets the current Aztec Code Encoding Format specifier for industry format. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_Aztec_FormatA (t_BarCode* pBarCode, e_AztecFormat eFormat, LPCSTR szFormatSpecifier) | ||||||
Specifies Aztec Code encoding format. Specifies the encoding format (standard, GS1 or industry). Default is eAztecFm_Default (standard format).
| |||||||
| ERRCODE | BCSet_Aztec_FormatW (t_BarCode* pBarCode, e_AztecFormat eFormat, LPCWSTR szFormatSpecifier) | ||||||
Specifies Aztec Code encoding format. Specifies the encoding format (standard, GS1 or industry). Default is eAztecFm_Default (standard format).
| |||||||
| LONG | BCGet_Aztec_ErrorCorrection (t_BarCode* pBarCode) | ||||||
Gets the number of error correction codewords in percent of the symbol size Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_Aztec_ErrorCorrection (t_BarCode* pBarCode, LONG nErrorCorrection) | ||||||
Sets the number of error correction codewords in percent (from 0 to 99) of the symbol size.
| |||||||
| BOOL | BCGet_Aztec_RuneMode (t_BarCode* pBarCode) | ||||||
Determines whether the symbol is in Aztec Rune Mode. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_Aztec_RuneMode (t_BarCode* pBarCode, BOOL bRuneMode) | ||||||
Determines whether symbol shall be encoded in Aztec Rune mode.
| |||||||
| BOOL | BCGet_Aztec_AppendActive (t_BarCode* pBarCode) | ||||||
Determines whether the structured append mode is active. Returns TRUE if structured append mode is active, otherwise FALSE
| |||||||
| ERRCODE | BCSet_Aztec_AppendActive (t_BarCode* pBarCode, BOOL bActivate) | ||||||
Activates/Deactivates Aztec Code "Structured Append" mode. To set the data for structurer Aztec Code allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. This function activates or deactivates the structured append mode. To change the structured append data use function BCSet_Aztec_AppendData. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| |||||||
| CHAR | BCGet_Aztec_AppendTotalA (t_BarCode* pBarCode) | ||||||
Gets the adjusted total number of symbols in the Aztec Code Structured Append mode. Returns currently adjusted value
| |||||||
| WCHAR | BCGet_Aztec_AppendTotalW (t_BarCode* pBarCode) | ||||||
Gets the adjusted total number of symbols in the Aztec Code Structured Append mode. Returns currently adjusted value
| |||||||
| CHAR | BCGet_Aztec_AppendIndexA (t_BarCode* pBarCode) | ||||||
Gets the current index of the symbol in Aztec Code Structured Append mode. Returns currently adjusted value.
| |||||||
| WCHAR | BCGet_Aztec_AppendIndexW (t_BarCode* pBarCode) | ||||||
Gets the current index of the symbol in Aztec Code Structured Append mode. Returns currently adjusted value.
| |||||||
| LPCSTR | BCGet_Aztec_AppendMessageIDA (t_BarCode* pBarCode) | ||||||
Gets the adjusted Message-ID in Aztec Code Structured Append mode. Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_Aztec_AppendMessageIDW (t_BarCode* pBarCode) | ||||||
Gets the adjusted Message-ID in Aztec Code Structured Append mode. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_Aztec_AppendDataA (t_BarCode* pBarCode, CHAR cTotal, CHAR cIndex, LPCSTR szMessageID) | ||||||
Sets Aztec Code "Structured Append" data. This function sets the total number of symbols and the index of the actual Aztec Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| |||||||
| ERRCODE | BCSet_Aztec_AppendDataW (t_BarCode* pBarCode, WCHAR cTotal, WCHAR cIndex, LPCWSTR szMessageID) | ||||||
Sets Aztec Code "Structured Append" data. This function sets the total number of symbols and the index of the actual Aztec Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| |||||||
| LPCSTR* | BCGetAztecSizesA () | ||||||
Returns the implemented Aztec Code symbol sizes. Returns all possible Aztec Code symbol sizes in an array.
| |||||||
| LPCWSTR* | BCGetAztecSizesW () | ||||||
Returns the implemented Aztec Code symbol sizes. Returns all possible Aztec Code symbol sizes in an array.
| |||||||
| LONG | BCGetAztecSizesCount () | ||||||
Returns the number of supported Aztec Code symbol-sizes. Returns the number of possible symbol sizes for Aztec Code.
| |||||||
| e_DCSizeMode | BCGet_DotCode_SizeMode (t_BarCode* pBarCode) | ||||||
Gets size mode of DotCode symbol. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| |||||||
| LPCSTR | BCGet_DotCode_SizeA (t_BarCode* pBarCode) | ||||||
Gets the current DotCode size. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| |||||||
| LPCWSTR | BCGet_DotCode_SizeW (t_BarCode* pBarCode) | ||||||
Gets the current DotCode size. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| |||||||
| LPCSTR | BCGet_DotCode_DefaultSizeForModeA (e_DCSizeMode eMode) | ||||||
| LPCWSTR | BCGet_DotCode_DefaultSizeForModeW (e_DCSizeMode eMode) | ||||||
| ERRCODE | BCSet_DotCode_SizeA (t_BarCode* pBarCode, e_DCSizeMode eMode, LPCSTR szSize) | ||||||
| ERRCODE | BCSet_DotCode_SizeW (t_BarCode* pBarCode, e_DCSizeMode eMode, LPCWSTR szSize) | ||||||
| e_DCPrintDirection | BCGet_DotCode_PrintDirection (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_PrintDirection (t_BarCode* pBarCode, e_DCPrintDirection eDirection) | ||||||
| BOOL | BCGet_DotCode_EnforceBinaryEncoding (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_EnforceBinaryEncoding (t_BarCode* pBarCode, BOOL bEnforceBinary) | ||||||
| e_DCFormat | BCGet_DotCode_Format (t_BarCode* pBarCode) | ||||||
| LPCSTR | BCGet_DotCode_FormatSpecifierA (t_BarCode* pBarCode) | ||||||
| LPCWSTR | BCGet_DotCode_FormatSpecifierW (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_FormatA (t_BarCode* pBarCode, e_DCFormat eFormat, LPCSTR szFormatSpecifier) | ||||||
| ERRCODE | BCSet_DotCode_FormatW (t_BarCode* pBarCode, e_DCFormat eFormat, LPCWSTR szFormatSpecifier) | ||||||
| e_DCMask | BCGet_DotCode_Mask (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_Mask (t_BarCode* pBarCode, e_DCMask eMask) | ||||||
| BOOL | BCGet_DotCode_AppendActive (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_AppendActive (t_BarCode* pBarCode, BOOL bActivate) | ||||||
| LONG | BCGet_DotCode_AppendTotal (t_BarCode* pBarCode) | ||||||
| LONG | BCGet_DotCode_AppendIndex (t_BarCode* pBarCode) | ||||||
| ERRCODE | BCSet_DotCode_Append (t_BarCode* pBarCode, LONG nTotal, LONG nIndex) | ||||||
| e_QRVersion | BCGet_QR_Version (t_BarCode* pBarCode) | ||||||
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_QR_Version (t_BarCode* pBarCode, e_QRVersion eVersion) | ||||||
Specifies the symbol version (the symbol size). Specifies the size of the symbol. QR-Code supports a number of different symbol sizes - these sizes are called "versions" (see e_QRVersion). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| |||||||
| e_QRFormat | BCGet_QR_Format (t_BarCode* pBarCode) | ||||||
Gets the current encoding format. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_QR_Format (t_BarCode* pBarCode, e_QRFormat eFormat) | ||||||
Specifies QR-Code encoding format. Specifies the generated code format. Per default TBarCode uses the default encoding scheme without a special header.
| |||||||
| LPCSTR | BCGet_QR_FmtAppIndicatorA (t_BarCode* pBarCode) | ||||||
Gets current QR-Code Format application indicator (used with Industry format). Returns currently adjusted value.
| |||||||
| LPCWSTR | BCGet_QR_FmtAppIndicatorW (t_BarCode* pBarCode) | ||||||
Gets current QR-Code Format application indicator (used with Industry format). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_QR_FmtAppIndicatorA (t_BarCode* pBarCode, LPCSTR szIndicator) | ||||||
Set QR-Code format Application Indicator (used with Industry format). Is used only in connection with Industry-Format. The Application Indicator determines, to which industry format the input stream corresponds.
| |||||||
| ERRCODE | BCSet_QR_FmtAppIndicatorW (t_BarCode* pBarCode, LPCWSTR szIndicator) | ||||||
Set QR-Code format Application Indicator (used with Industry format). Is used only in connection with Industry-Format. The Application Indicator determines, to which industry format the input stream corresponds.
| |||||||
| e_QRECLevel | BCGet_QR_ECLevel (t_BarCode* pBarCode) | ||||||
Gets the current QR-Code error correction level (ECL). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_QR_ECLevel (t_BarCode* pBarCode, e_QRECLevel eECLevel) | ||||||
Sets QR-Code error correction level (ECL). Sets QR-Code error correction level (ECL). If not set, TBarCode uses medium error correction level per default.
| |||||||
| e_QRMask | BCGet_QR_Mask (t_BarCode* pBarCode) | ||||||
Gets the current QR-Code mask pattern (0-7). Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_QR_Mask (t_BarCode* pBarCode, e_QRMask eMask) | ||||||
Sets QR-Code mask pattern (0-7). Specifies the so-called "mask" that is applied to the QR-Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is very time consuming - if the encoding process must be optimized set a predefined mask.
| |||||||
| e_QRMBCompaction | BCGet_QR_KanjiChineseCompaction (t_BarCode* pBarCode) | ||||||
Gets the current state of the QR-Code "Compact Kanji / Chinese" option. Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_QR_KanjiChineseCompaction (t_BarCode* pBarCode, e_QRMBCompaction eCompact) | ||||||
Enables QR-Code "Compact Kanji" or "Compact Chinese" option. Enables the compaction of Kanji or Simplified Chinese characters into 13-bit values. The characters must be passed on as Unicode (wide string functions) in combination with code page set to Shift JIS or Simplified Chinese. If you use encoding mode Low Byte, the Kanji-characters must be supplied in Shift JIS X 0208 and the Chinese characters in GB2312 (Simplified Chinese) multi byte character set. Compaction of Kanji characters is done according to ISO/IEC 18004 (and AIM ITS/97-001); Compaction of Chinese characters is done according to GB/T 18284-2000.
| |||||||
| LONG | BCGet_QR_AppendSum (t_BarCode* pBarCode) | ||||||
Gets the total number of symbol when using QR-Code "Structured Append". Returns currently adjusted value.
| |||||||
| LONG | BCGet_QR_AppendIndex (t_BarCode* pBarCode) | ||||||
Gets the structured append index of the symbol when using QR-Code "Structured Append". Returns currently adjusted value.
| |||||||
| BYTE | BCGet_QR_AppendParity (t_BarCode* pBarCode) | ||||||
Gets the structured append parity when using QR-Code "Structured Append". Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_QR_Append (t_BarCode* pBarCode, LONG nSum, LONG nIndex, BYTE bParity) | ||||||
| Activates QR-Code "Structured Append" feature. QR-Code allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. Default: Structured Append is disabled. This function enables Structured Append and sets the total number of symbols and the index of the actual QR-Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. All symbols within a symbol chain must be identified by a Parity. This parity is computed with BCCalcStructApp_Parity().
| |||||||
| BYTE | BCCalcStructApp_ParityA (LPCSTR szIntData, LONG nIntData) | ||||||
Returns the parity byte for QR-Code "Structured Append" (Byte array version). Returns the parity byte for a given input data-stream. Used with QR-Code and structured append.
| |||||||
| BYTE | BCCalcStructApp_ParityW (LPCWSTR szIntData, LONG nIntData) | ||||||
Returns the parity byte for QR-Code "Structured Append" (Byte array version). Returns the parity byte for a given input data-stream. Used with QR-Code and structured append.
| |||||||
| LPCSTR* | BCGetQRCodeVersionsA () | ||||||
Returns implemented QR-Code versions. Returns all possible QR-Code versions (symbol sizes) in an array.
| |||||||
| LPCWSTR* | BCGetQRCodeVersionsW () | ||||||
Returns implemented QR-Code versions. Returns all possible QR-Code versions (symbol sizes) in an array.
| |||||||
| LONG | BCGetQRCodeVersionCount () | ||||||
Returns number of implemented QR-Code versions. Returns the number of possible QR-Code versions
| |||||||
| e_MQRVersion | BCGet_MQR_Version (t_BarCode* pBarCode) | ||||||
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_MQR_Version (t_BarCode* pBarCode, e_MQRVersion eVersion) | ||||||
Specifies the symbol version (the symbol size). Specifies the size of the symbol. Micro QR-code supports a number of different symbol sizes - these sizes are called "versions" (see e_MQRVersion). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| |||||||
| e_MQRMask | BCGet_MQR_Mask (t_BarCode* pBarCode) | ||||||
Gets the current Micro QR-Code mask pattern (0-7). Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_MQR_Mask (t_BarCode* pBarCode, e_MQRMask eMask) | ||||||
Sets Micro QR-Code mask pattern (0-7). Specifies the so-called "mask" that is applied to the Micro QR-Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is time consuming - if the encoding process must be optimized set a predefined mask.
| |||||||
| LPCSTR* | BCGetMQRCodeVersionsA () | ||||||
Returns implemented Micro QR-Code versions. Returns all possible Micro QR-Code versions (symbol sizes) in an array.
| |||||||
| LPCWSTR* | BCGetMQRCodeVersionsW () | ||||||
Returns implemented Micro QR-Code versions. Returns all possible Micro QR-Code versions (symbol sizes) in an array.
| |||||||
| LONG | BCGetMQRCodeVersionCount () | ||||||
Returns number of implemented Micro QR-Code versions. Returns the number of possible Micro QR-Code versions
| |||||||
| e_HanXinSizes | BCGet_HanXin_Version (t_BarCode* pBarCode) | ||||||
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_HanXin_Version (t_BarCode* pBarCode, e_HanXinSizes eVersion) | ||||||
Specifies the symbol version (the symbol size). Specifies the size of the symbol. Han Xin Code supports a number of different symbol sizes - these sizes are called "versions" (see e_HanXinSizes). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| |||||||
| e_HanXinECLevel | BCGet_HanXin_ECLevel (t_BarCode* pBarCode) | ||||||
Gets the current Han Xin Code error correction level (ECL). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_HanXin_ECLevel (t_BarCode* pBarCode, e_HanXinECLevel eECLevel) | ||||||
Sets Han Xin Code error correction level (ECL). Sets Han Xin Code error correction level (ECL). If not set, TBarCode uses error correction level "1" per default.
| |||||||
| e_HanXinMask | BCGet_HanXin_Mask (t_BarCode* pBarCode) | ||||||
Gets the current Han Xin Code mask pattern (0-3). Returns currently adjusted value
| |||||||
| ERRCODE | BCSet_HanXin_Mask (t_BarCode* pBarCode, e_HanXinMask eMask) | ||||||
Sets Han Xin Code mask pattern (0-3). Specifies the so-called "mask" that is applied to the Han Xin Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is somewhat time consuming - if the encoding process must be optimized set a predefined mask.
| |||||||
| BOOL | BCGet_HanXin_EnforceBinaryEncoding (t_BarCode* pBarCode) | ||||||
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| |||||||
| ERRCODE | BCSet_HanXin_EnforceBinaryEncoding (t_BarCode* pBarCode, BOOL bEnforceBinary) | ||||||
Determines whether Han Xin Code shall be encoded in binary mode or not.
| |||||||
| LPCSTR* | BCGetHanXinVersionsA () | ||||||
Returns implemented Han Xin Code versions. Returns all possible Han Xin Code versions (symbol sizes) in an array.
| |||||||
| LPCWSTR* | BCGetHanXinVersionsW () | ||||||
Returns implemented Han Xin Code versions. Returns all possible Han Xin Code versions (symbol sizes) in an array.
| |||||||
| LONG | BCGetHanXinVersionCount () | ||||||
Returns number of implemented Han Xin Code versions. Returns the number of possible Han Xin Code versions
| |||||||
| e_CBFFormat | BCGet_CBF_Format (t_BarCode* pBarCode) | ||||||
Gets the adjusted Codablock-F code format. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_CBF_Format (t_BarCode* pBarCode, e_CBFFormat eFormat) | ||||||
Sets Codablock-F code format. Specifies the encoding format for Codablock-F. Selects UCC/EAN or the default encoding format.
| |||||||
| LONG | BCGet_CBF_Columns (t_BarCode* pBarCode) | ||||||
Gets the number of adjusted Codablock-F columns. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_CBF_Columns (t_BarCode* pBarCode, LONG nColumns) | ||||||
Adjusts the number of Codablock-F columns. Specifies the number of columns that should be used for the Codablock-F symbol. If this value is not set explicitly, TBarCode computes the number of columns automatically (default).
| |||||||
| LONG | BCGet_CBF_Rows (t_BarCode* pBarCode) | ||||||
Gets the adjusted number of Codablock-F rows. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_CBF_Rows (t_BarCode* pBarCode, LONG nRows) | ||||||
Adjusts the number of CodaBlock-F rows. Specifies the number of rows that should be used for the CodaBlock-F symbol. If this value is not set explicitly, TBarCode computes the number of rows automatically (default).
| |||||||
| LONG | BCGet_CBF_RowHeight (t_BarCode* pBarCode) | ||||||
Gets the adjusted row height for Codablock-F. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_CBF_RowHeight (t_BarCode* pBarCode, LONG nHeight) | ||||||
Sets the row height for Codablock-F. Specifies the height of an individual row in 1/1000 mm. If this value is not set explicitly (=default), the height is calculated according to the bounding rectangle when drawing (see BCDraw()). If set, ensure that the bounding rectangle is big enough to avoid clipping.
| |||||||
| LONG | BCGet_CBF_RowSeparatorHeight (t_BarCode* pBarCode) | ||||||
Gets the currently adjusted row separator height for Codablock-F. Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_CBF_RowSeparatorHeight (t_BarCode* pBarCode, LONG nHeight) | ||||||
Sets the height of the Codablock-F row-separator. Specifies the height of the row-separator in 1/1000 mm. If this value is not set (=default), the height of the separator row is calculated automatically (according to the bounding rectangle). If set, ensure that the bounding rectangle is big enough to avoid clipping.
| |||||||
| e_CCType | BCGet2DCompositeComponent (t_BarCode* pBarCode) | ||||||
Gets adjusted 2D Composite Component. Returns currently adjusted CC.
| |||||||
| ERRCODE | BCSet2DCompositeComponent (t_BarCode* pBarCode, e_CCType eCCType) | ||||||
Sets 2D Composite Component (= CC) Type. Enables or disables generation of an GS1 Composite Symbology and adjusts the type of the 2D composite component (CC-A, CC-B or CC-C). The CC is printed on top of the base symbol, which can be an GS1 DataBar or an EAN-128 symbology. For usual applications (using GS1 Composite) we recommend to set the CC-Type to eCC_Auto. In this case TBarCode computes the optimal CC automatically. Default: eCC_None.
| |||||||
| BOOL | BCGet_CompSym_IsCCPresent (t_BarCode* pBarCode) | ||||||
Determines if a composite component was created. After BCCreate() you can check if a composite component is present (and therefore is part of the created symbol). This method is useful if you adjusted a composite component to be created but - depending on missing input data - the composite component may be omitted (only the linear bar code appears).
| |||||||
| BOOL | BCGet_CompSym_IsCCAvailable (t_BarCode* pBarCode, e_CCType eCCType) | ||||||
Check if a composite component is available for the current base symbology. Used with GS1 Composite Symbology. Tells you if a specific 2D composite component (CC-A/B/C) can be combined with the selected base symbology. Adjust the base symbology first with BCSetBCType(). \param[in] pBarCode Pointer to barcode structure. \param[in] eCCType Composite component type (symbology of composite component).
| |||||||
| BOOL | BCGet_CompSym_ErrorInCC (t_BarCode* pBarCode) | ||||||
Determines the source of the error when creating composite symbologies. If BCCreate() returns with an error this function indicates whether the error happened in the base symbology or in the composite symbol. Example: If the composite component could not be created due to wrong data this function returns true. \param[in] pBarCode Pointer to barcode structure.
| |||||||
| BOOL | BCIsCompositeAllowed (e_BarCType barcodeType) | ||||||
Retrieves whether the barcode type can be a composite barcode. Only certain types of barcodes can have composite components. You can use this function to find out if a certain barcode type supports a composite component. \param[in] barcodeType e_BarCType. The type of barcode.
| |||||||
| BOOL | BCIsCompositeComponentAllowed (e_BarCType barcodeType, e_CCType componentType) | ||||||
Retrieves whether the barcode type can be a composite barcode with a certain component. Only certain types of barcodes can have composite components, and not all composite barcodes support all type of component types. You can use this function to find out if a certain barcode type supports a certain type of composite component. \param[in] barcodeType e_BarCType. The type of barcode. \param[in] componentType e_CCType. The type of composite component.
| |||||||
| LONG | BCGet_RSS_SegmPerRow (t_BarCode* pBarCode) | ||||||
Gets currently adjusted data segments per row (GS1 DataBar/RSS Expanded Stacked only). Returns currently adjusted value.
| |||||||
| ERRCODE | BCSet_RSS_SegmPerRow (t_BarCode* pBarCode, LONG nSegmPerRow) | ||||||
Sets data segments per Row (GS1 DataBar/RSS Expanded Stacked only) to a fixed value. The value of nSegmPerRow specifies how many data words (segments) are encoded in one data row of the symbol. Values in the range from 2 to 22 are allowed. Data words are encoded in pairs, so only even numbers are valid. Wrong values are auto-corrected by TBarCode. If this value is not set (default), the number of data segments per row is 4.
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Constant indicating a default value. Used for determining or setting the default value of most relevant parameters.
|
Data type for error codes. Error code 0 indicates successful operation.
|
|
|
|
Exports/imports DLL interface. \internal.
|
Symbol that identifies TBarCode 11.0.0.
|
\file Header File for TBarCode Library. Include this header file in your modules to access the TBarCode API. In Windows:
#include "tbarcode.h"
#include <libTBarCode11/tbarcode.h>
|
Current TBarCode version.
|
Defines calling convention. \internal.
|
|
|
Defined if platform is Windows. \internal.
|
Defined if platform is Windows CE. \internal.
|
|
|
Rectangle structure for double types.
|
Rectangle structure for double types.
|
Forward declaration of the internal used barcode structure. The exact layout of this structure is hidden.
|
Saves barcode as a AI-file. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a AI-file. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode (Adobe Illustrator Format) into memory-block. The origin of the coordinate space in AI format is the lower, left corner of a page. The positive y-axis points upwards. Format: Adobe Illustrator 7
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Allocates and initializes barcode structure. Must be called as first function before any other call using pBarCode. This function allocates and initializes the internal barcode structure to store all parameters. It sets the pointer that you pass to this function. For each barcode you want to use simultaneously, you have to call this function to get an appropriate handle (pBarCode). \param[in, out] ppBarCode Pointer to barcode structure. Only valid if return value is ErrOk (0)
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Initializes TBarCode for further use (Windows static library only). Required only for static library variants of TBarCode (not for DLLs). Must be called as first function.
| true | Initialization successful |
| false | Initialization not successful ----------------------------------------------------------------------------. |
|
Attach library to given instance (Windows static library only). Required only for static library variants of TBarCode. Must be called as first function.
| true | Initialization successful |
| false | Initialization not successful ----------------------------------------------------------------------------. |
|
Saves barcode as an image file. The file name's suffix determines the image format, e.g. 'xxx.gif'. Supported image formats are: BMP, GIF, JPG, PNG and TIF.
All barcodes are supported. Text output is not supported.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as an image file. The file name's suffix determines the image format, e.g. 'xxx.gif'. Supported image formats are: BMP, GIF, JPG, PNG and TIF.
All barcodes are supported. Text output is not supported.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode in an image format to memory block. All barcodes are supported. Text output is not supported.
\param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in] pszFormat The image format ("BMP" , "GIF", "JPG" , "PNG" or "TIF") \param[in,out] pnSize The size of the allocated memory block. Contains the required size after the function call.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Writes barcode in an image format to memory block. All barcodes are supported. Text output is not supported.
\param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in] pszFormat The image format ("BMP" , "GIF", "JPG" , "PNG" or "TIF") \param[in,out] pnSize The size of the allocated memory block. Contains the required size after the function call.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Calculates check-digit(s). Calculates the check-digit(s) depending on all barcode parameters previously set (symbology, check digit method, bar code data). You can retrieve the calculated check sum with BCGetCheckDigits(). Do not change barcode parameters or input data after this call (if you want to generate a bar code).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Calculates check-digit(s) for a given data string. Calculates the check sum for a given data string with the given check digit method. Use this function to generate check digits independently from the adjusted bar code data. E.g. If you need a check digit only displayed in the human readable text (and not encoded in the symbol), use this function to build up your display string.
| ERRCODE | ErrOk (0) in case of success. Non-zero if check digit generation failed. ----------------------------------------------------------------------------. |
|
Calculates check-digit(s) for a given data string. Calculates the check sum for a given data string with the given check digit method. Use this function to generate check digits independently from the adjusted bar code data. E.g. If you need a check digit only displayed in the human readable text (and not encoded in the symbol), use this function to build up your display string.
| ERRCODE | ErrOk (0) in case of success. Non-zero if check digit generation failed. ----------------------------------------------------------------------------. |
|
Returns the parity byte for QR-Code "Structured Append" (Byte array version). Returns the parity byte for a given input data-stream. Used with QR-Code and structured append.
| BYTE | Value of the parity byte ----------------------------------------------------------------------------. |
|
Returns the parity byte for QR-Code "Structured Append" (Byte array version). Returns the parity byte for a given input data-stream. Used with QR-Code and structured append.
| BYTE | Value of the parity byte ----------------------------------------------------------------------------. |
|
Checks barcode input data for validity. The bar code data is validated to be encoded with the selected symbology. Adjust all bar code parameters before you call this function. If the input data is invalid (a non-zero error code was returned), you can correct the bar code data and try again. If the check was successful, do not change barcode parameters or input data anymore (before you create a bar code).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Makes a clone of an existing bar code structure. Call this function if you need a deep copy of a bar code structure. You have to call BCFree on pBarCodeDest after using in order to free the allocated resources. \param[in, out] ppBarCodeDest Pointer to destination barcode structure. \param[in] pBarCodeSrc Pointer to source barcode structure.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Copies barcode to the Windows clipboard (Windows only). Copies barcode to the Windows clipboard. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format (EMF) is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Creates the internal barcode representation. Creates the internal barcode representation depending on all barcode parameters previously set. After this call the barcode is ready for drawing or saving (e.g. with BCDraw()). Do not change barcode parameters or input data after this call.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
De-initializes TBarCode Library (UNIX and Windows CE only). Must be called before terminating the application or before unloading TBarCode Library.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Detach library from process (Windows static library only). Required only for static library variants of TBarCode (not for DLLs). Must be called as last function.
| true | De-initialization successful |
| false | De-initialization not successful ----------------------------------------------------------------------------. |
|
Draws barcode onto the given Windows device context. Draws the barcode onto the given device context. The coordinates of the bounding rectangle defines the barcode dimensions. The coordinates passed in pRect are interpreted in the current mapping mode of the device context. No special coordinate mapping is performed.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Callback version of barcode draw function. Call this function instead of BCDraw() if you want to use your own drawing routines (e.g. for generating a barcode on special devices or in special output formats). - fn_DrawRow is used for drawing the bars, see BCSetFuncDrawRow() - fn_DrawBar is used for drawing the bars, see BCSetFuncDrawBar() - fn_DrawText is used for drawing the human readable text, see BCSetFuncDrawText()
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Frees barcode structure. Must be called as last function and frees all resources used by pBarCode. The pointer pBarCode must not be used after this call. \param[in] pBarCode Pointer to barcode structure.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Gets adjusted 2D Composite Component. Returns currently adjusted CC.
| eCC_None | No value set. This is the default |
| e_CCType | Otherwise ----------------------------------------------------------------------------. |
|
Returns the width of the barcode in modules. The measurement unit used for the return value is the module width (X). The total symbol width would be the return value of this function * X (X = module width). Can be used for BCSaveImage() to optimize the resolution of the resulting image.
| LONG | Number of horizontal modules ----------------------------------------------------------------------------. |
|
Returns the height of the barcode in modules. The measurement unit used for the return value is the module width (X). The total symbol height would be the return value of this function * X (X = module width) + height of text area (BCGetTextAreaHeight()). Can be used for BCSaveImage() to optimize the resolution of the resulting image.
| LONG | Number of vertical modules ----------------------------------------------------------------------------. |
|
Gets the currently active text index. Returns the index of the currently active/selected text.
A return value of
\li 0 ... means that the human readable text is active (this is the default) \li >0 ... means that the extra text with given index [1 .. n] is active The user can only change the settings of the text that is currently active.
|
Gets auto-correct option for Code 2 of 5 interleaved. Returns currently adjusted value.
| true | Enable auto-correct. This is the default |
| false | Disable auto-correct ----------------------------------------------------------------------------. |
|
Returns the implemented Aztec Code symbol sizes. Returns all possible Aztec Code symbol sizes in an array.
| LPCSTR | * String array (size is available via BCGetAztecSizesCount()) ----------------------------------------------------------------------------. |
|
Returns the number of supported Aztec Code symbol-sizes. Returns the number of possible symbol sizes for Aztec Code.
| LONG | Number of supported Aztec Code symbol sizes ----------------------------------------------------------------------------. |
|
Returns the implemented Aztec Code symbol sizes. Returns all possible Aztec Code symbol sizes in an array.
| LPCSTR | * String array (size is available via BCGetAztecSizesCount()) ----------------------------------------------------------------------------. |
|
Returns number of implemented barcodes. Returns number of implemented barcodes. The return value specifies the size of the array returned by BCGetBCList().
| LONG | Number of supported barcode symbologies |
|
Returns implemented barcode symbologies Returns string-array of implemented barcodes. Use this function in connection with BCGetBCCount().
| LPCSTR | * String-array of supported barcode symbologies. |
|
Returns implemented barcode symbologies Returns string-array of implemented barcodes. Use this function in connection with BCGetBCCount().
| LPCSTR | * String-array of supported barcode symbologies. |
|
Gets the barcode type (symbology) currently adjusted. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| e_BarCType | Bar-code type (symbology) enumerator. Code128 is the default ----------------------------------------------------------------------------. |
|
Retrieves the background color of the barcode.
|
Retrieves the background color of the barcode.
|
Retrieves the background color of the barcode.
|
Retrieves the background color 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 current bar-width reduction value. Returns currently adjusted value.
| LONG | Reduction in percent [0...100]. No reduction: 0 (this is the default) ----------------------------------------------------------------------------. |
|
Gets current bar-width reduction unit. Returns currently adjusted unit.
| LONG | Reduction in percent [0...100]. No reduction: 0 (this is the default) ----------------------------------------------------------------------------. |
|
Retrieves the color of the barcode.
|
Retrieves the color of the barcode.
|
Retrieves the color of the barcode.
|
Retrieves the RGB color of the barcode.
|
Returns the height of the barcode symbol. Returns the total barcode height in the specified measurement unit. Use BCGetBarcodeSize() if you also need the width of the symbol. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle.
Relevant for 2D or Multi-Row Symbologies (e.g. PDF417, Data Matrix, RSS Stacked...): If a row height has been set, the bar code height depends on the adjusted row height and the number of rows in the symbol. For some symbologies also the module width is relevant for the symbol height.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| LONG | Height of barcode symbol ----------------------------------------------------------------------------. |
|
Computes the barcode size (recommended method). Computes width and height of barcode with one call. You can use this function before you draw the barcode to ensure that there is enough space available. Call this function after BCCreate() and specify a bounding rectangle (target coordinates, where you would draw the barcode). This rectangle is relevant if you haven't specified a module width or a row height. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Returns the total width of the barcode symbol. Returns the total barcode width in the specified measurement unit for a given device context. You can specify the measurement unit, which should be used for the return value. Use BCGetBarcodeSize() if you also need the height of the symbol. As for the bounding rectangle pass in the same coordinates as you would use for drawing. Some symbologies have a specific width/height ratio and therefore the bar code size is adapted to fit into the bounding rectangle. If a module width has been set, the bar code width depends on the module width and the number of horizontal modules.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| LONG | Width of barcode symbol ----------------------------------------------------------------------------. |
|
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 user-defined data that is passed to the callback functions.
\param[in] pBarCode Pointer to barcode structure.
|
Returns number of implemented check-digit methods. Returns the number of implemented check-digit methods. Use this function in connection with BCGetCDList().
| LONG | Number of supported check-digit methods ----------------------------------------------------------------------------. |
|
Returns the implemented check-digit methods. Returns array of implemented check-digit methods. Use this function in connection with BCGetCDCount().
| LPCSTR | * String-array of implemented check-digit methods. ----------------------------------------------------------------------------. |
|
Returns the implemented check-digit methods for a barcode symbology. Returns an array of implemented check-digit methods for the specified barcode symbology. \param[in] eBCType Type of barcode.
| e_CDMethod | * Array of check-digit method enumerators. The array is terminated with -1 (maximum array size is 5). ----------------------------------------------------------------------------. |
|
Returns the implemented check-digit methods. Returns array of implemented check-digit methods. Use this function in connection with BCGetCDCount().
| LPCSTR | * String-array of implemented check-digit methods. ----------------------------------------------------------------------------. |
|
Gets the check-digit method currently in use. Returns currently adjusted value.
| eCDStandard | No value set. This is the default. TBarCode computes the standard check-digit of the symbology. |
| e_CDMethod | Otherwise ----------------------------------------------------------------------------. |
|
Gets the the character spacing of the currently active text object. Positive values increment the spacing, negative values decrement it.
|
Returns all computed check-digits for the current barcode. Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()
| LONG | Number of check-digits |
| -1 | In case of error (buffer size to small) ----------------------------------------------------------------------------. |
|
Returns all computed check-digits for the current barcode. Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()
| LONG | Number of check-digits |
| -1 | In case of error (buffer size to small) ----------------------------------------------------------------------------. |
|
Gets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page.
| e_CodePage | The Code Page Identifier. ----------------------------------------------------------------------------. |
|
Gets the input data encoding code page. (custom value) If another than a predefined code page is used (BCGetCodePage returns eCodePage_Custom), this function returns the code page identifier.
| UINT | The Code Page Identifier. ----------------------------------------------------------------------------. |
|
Gets the current barcode color. Returns currently adjusted value.
| COLORREF | Current value. Black is the default ----------------------------------------------------------------------------. |
|
Gets the current background color. Returns currently adjusted value.
| COLORREF | Current value. White is the default ----------------------------------------------------------------------------. |
|
Gets the current color of the human readable text. Returns currently adjusted value.
| COLORREF | Current value. Black is the default ----------------------------------------------------------------------------. |
|
Converts a single meta character returned by BCGetMetaData into a corresponding color value. If the given meta character is a placeholder for a color value, the corresponding RGB color value is returned. For all other meta characters the function returns the invalid color value BC_USEDEFAULT (0xFFFFFFFF) \param[in] pBarCode Pointer to barcode structure. \param[in] chMeta Meta character.
| COLORREF | a valid color value if meta character stands for a color value or otherwise BC_USEDEFAULT (0xFFFFFFFF) ----------------------------------------------------------------------------. |
|
Retrieves the color mode (CMYK, RGB, or Grayscale). \param[in] pBarcode Pointer to barcode structure
|
Returns mode of data compression for barcode content. \param[in] pBarCode Pointer to barcode structure.
| Compression | mode. ----------------------------------------------------------------------. |
|
Returns number of different bar-widths used by the symbology. Returns number of different bar-widths used for the specified barcode symbology.
Code 2 of 5 Interleaved uses two different bar-widths: the return value is 2.
| -1 | In case of error |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Returns the number of modules in the barcode. Returns the number of modules for the current barcode with respect to encoded data, check-digits, subset and other barcode parameters. With 2D symbologies the total number of all modules (in all rows) will be returned.
|
Returns the number of rows in the barcode. Returns the number of rows in multi-row symbologies (PDF417, Data Matrix, Codablock-F, QR-Code, MicroPDF417, RSS Stacked versions)
| LONG | Number of rows ----------------------------------------------------------------------------. |
|
Returns number of different space-widths used by the symbology. Returns number of different space-widths for specified barcode symbology.
Code 2 of 5 Interleaved uses two different space-widths: the return value is 2.
| -1 | In case of error |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Returns TRUE if Windows GDI device context (DC) conversion is activated. \param[in] pBarCode Pointer to barcode structure.
| TRUE | DC conversion is activated. (This is the default setting). |
| FALSE | DC conversion is deactivated. ----------------------------------------------------------------------------. |
|
Gets current user-defined horizontal resolution. Gets current user-defined horizontal resolution.
| LONG | Horizontal DPI ----------------------------------------------------------------------------. |
|
Gets current user-defined vertical resolution. Gets current user-defined vertical resolution.
| LONG | Vertical DPI ----------------------------------------------------------------------------. |
|
Returns implemented Data Matrix symbol sizes for given barcode type. Returns all possible Data Matrix symbol sizes for given barcode type in an array.
| e_DMSizes | * array of size enumerations (size is available via BCGetDataMatrixSizesCountExt()) ----------------------------------------------------------------------------. |
|
Returns implemented Data Matrix symbol sizes. Returns all possible Data Matrix symbol-sizes in an array.
| LPCSTR | * String array (size is available via BCGetDataMatrixSizesCount()) ----------------------------------------------------------------------------. |
|
Returns the number of supported Data Matrix symbol-sizes. Returns the number of possible symbol sizes for Data Matrix.
| LONG | Number of supported Data Matrix symbol sizes ----------------------------------------------------------------------------. |
|
Returns the number of supported Data Matrix symbol-sizes for of given barcode type. Returns the number of possible symbol sizes for Data Matrix for given barcode type.
| LONG | Number of supported Data Matrix symbol sizes ----------------------------------------------------------------------------. |
|
Returns implemented Data Matrix symbol sizes. Returns all possible Data Matrix symbol-sizes in an array.
| LPCSTR | * String array (size is available via BCGetDataMatrixSizesCount()) ----------------------------------------------------------------------------. |
|
Returns the type of decoder that will be used to read this barcodes. The module width will be optimized for this type of scanner. \param[in] pBarCode Pointer to barcode structure.
| Type | of scanner. ----------------------------------------------------------------------. |
|
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| LPCSTR | The default data for given bar code type. ----------------------------------------------------------------------------. |
|
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| LPCSTR | The default data for given bar code type. ----------------------------------------------------------------------------. |
|
Gets the default bar shape for current barcode type. Returns default value.
| e_BarShape | Bar Shape ----------------------------------------------------------------------------. |
|
Retrieves the content of the currently active text object (usually the human readable text).
|
Retrieves the content of the currently active text object (usually the human readable text).
|
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
| true | Best performance method is used (drawing filled rectangles) |
| false | High quality method is used. This is the default. ----------------------------------------------------------------------------. |
|
Gets current method for drawing bars (Windows only). Returns currently adjusted value.
|
Gets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data.
| e_EncodingMode | The Encoding Mode. ----------------------------------------------------------------------------. |
|
Copies barcode into meta file (Windows only).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Copies barcode into meta file (extended version, Windows only).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Gets current setting for substitute font names for EPS. Returns currently adjusted value.
| false | No value set. This is the default |
| true | Otherwise ----------------------------------------------------------------------------. |
|
Returns error text to given error code. Returns the corresponding error text for a given error code. The returned string will be null-terminated.
|
Returns extended error text to given error code. Returns the detailed error text for a given error code. The returned string will be null-terminated and contains the error code, the error description and the source of the error (character position) if available.
|
Returns extended error text to given error code. Returns the detailed error text for a given error code. The returned string will be null-terminated and contains the error code, the error description and the source of the error (character position) if available.
|
Returns error text to given error code. Returns the corresponding error text for a given error code. The returned string will be null-terminated.
|
Retrieves the font color of the currently active text object (usually the human readable text).
|
Sets the font color of the currently active text object (usually the human readable text).
|
Retrieves the font color of the currently active text object (usually the human readable text).
|
Retrieves the font color of the currently active text object (usually the human readable text).
|
Gets the font size in Point of the currently active text object (usually the human readable text).
| INT | Font size in points. ----------------------------------------------------------------------------. |
|
Gets the font of the currently active text object (usually the human readable text).
| CHAR | * Name of font as a zero-terminated string. ----------------------------------------------------------------------------. |
|
Gets the font of the currently active text object (usually the human readable text).
| CHAR | * Name of font as a zero-terminated string. ----------------------------------------------------------------------------. |
|
Gets current format string. Returns currently adjusted value.
| LPCSTR | Current format string. Default is NULL ----------------------------------------------------------------------------. |
|
Gets current format string. Returns currently adjusted value.
| LPCSTR | Current format string. Default is NULL ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a bar. Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default. |
| fn_DrawBar | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a colored bar. Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default. |
| fn_DrawColoredBar | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a MaxiCode hexagon. Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default. |
| fn_DrawHexagon | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a MaxiCode finder ring. Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default. |
| fn_DrawRing | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a single row of a barcode. Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default |
| fn_DrawRow | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a text Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default |
| fn_DrawText | Otherwise ----------------------------------------------------------------------------. |
|
Gets call-back function for drawing a text Returns currently adjusted function pointer.
| NULL | No call-back function defined. This is the default |
| fn_DrawText | Otherwise ----------------------------------------------------------------------------. |
|
Returns number of implemented Han Xin Code versions. Returns the number of possible Han Xin Code versions
| LONG | Number of supported QR-code versions ----------------------------------------------------------------------------. |
|
Returns implemented Han Xin Code versions. Returns all possible Han Xin Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetHanXinVersionCount()) ----------------------------------------------------------------------------. |
|
Returns implemented Han Xin Code versions. Returns all possible Han Xin Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetHanXinVersionCount()) ----------------------------------------------------------------------------. |
|
Retrieves whether TBarCode ignores the resolution of the device context (Windows only).
\param[in,out] pBarCode Pointer to barcode structure.
| TRUE | TBarCode overwrites resolution from device context with custom resolution. |
| FALSE | TBarCode uses resolution of device context. |
|
Gets position of invalid character in input data. If BCCheck() or BCCreate() fails, this function allows you to determine the position of the first invalid character within the barcode text (see BCSetText()). Note: The returned position may not be accurate when using Escape Sequences in the input data. \param[in] pBarCode Pointer to barcode structure.
| INT | Zero-based index of invalid character. -1 if not available ----------------------------------------------------------------------------. |
|
|
|
Gets the font of the currently active text object (usually the human readable text - Windows only). Returns currently adjusted value.
|
Returns number of implemented Micro QR-Code versions. Returns the number of possible Micro QR-Code versions
| LONG | Number of supported Micro QR-code versions ----------------------------------------------------------------------------. |
|
Returns implemented Micro QR-Code versions. Returns all possible Micro QR-Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetMQRCodeVersionCount()) ----------------------------------------------------------------------------. |
|
Returns implemented Micro QR-Code versions. Returns all possible Micro QR-Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetMQRCodeVersionCount()) ----------------------------------------------------------------------------. |
|
Returns the number of characters for a specified barcode. Returns the exact number of characters that can be encoded with the specified barcode symbology. Returns zero if there is no specified length or an unknown barcode type was passed. \param[in] eType Barcode type.
| >0 | The number of expected input characters. |
| 0 | Number of input characters is unknown for this barcode. ----------------------------------------------------------------------------. |
|
Gets the maximum text index. Returns the maximum index of available text objects.
| LONG | The maximum index. ----------------------------------------------------------------------------. |
|
Returns meta-representation of a barcode. This function provides access to the meta-data of the current barcode row (refer to BCSetFuncDrawRow()). The result of this function is only valid, when it is called in the scope of your callback function (set by BCSetFuncDrawRow()).
| LPCSTR | Meta-description of barcode row. ----------------------------------------------------------------------------. |
|
Returns meta-representation of a barcode. This function provides access to the meta-data of the current barcode row (refer to BCSetFuncDrawRow()). The result of this function is only valid, when it is called in the scope of your callback function (set by BCSetFuncDrawRow()).
| LPCSTR | Meta-description of barcode row. ----------------------------------------------------------------------------. |
|
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 module width (value is returned as string). Returns currently adjusted value.
| LPCSTR | String containing the module width [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets the module width. The value is returned as numeric parameter [0.001 mm].
|
Gets the current module width (value is returned as string). Returns currently adjusted value.
| LPCSTR | String containing the module width [1/1000 mm] ----------------------------------------------------------------------------. |
|
Returns the module width. Returns the computed module width for a given device context with respect to encoded data, check-digits, subset and other barcode parameters. You can specify the unit, which should be used for the return value.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
| LONG | Module width ----------------------------------------------------------------------------. |
|
Returns if the barcode must fit into the bounding rectangle. Returns currently adjusted value.
| true | TBarCode checks if barcode fits into bounding rectangle |
| false | TBarCode does not check if barcode fits into bounding rectangle. This is the default ----------------------------------------------------------------------------. |
|
Returns name of check-digit method. Returns string description of the check-digit method specified. \param[in] eCDMethod Check-digit method.
| LPCSTR | String describing the check-digit method specified. ----------------------------------------------------------------------------. |
|
Returns name of check-digit method. Returns string description of the check-digit method specified. \param[in] eCDMethod Check-digit method.
| LPCSTR | String describing the check-digit method specified. ----------------------------------------------------------------------------. |
|
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 current barcode optimizing behavior. Returns currently adjusted value.
| true | Optimization is enabled |
| false | Optimization is disabled. This is the default ----------------------------------------------------------------------------. |
|
Returns the optimal size of a bitmap for given bar code settings. The optimal bitmap size depends on the number of horizontal bar/space modules and also on the number of vertical rows (multi-row or matrix codes). The default height for linear codes can be preset by the pRect->bottom parameter. This function also takes the DPI property into account. You can use the returned values as input for the save image functions.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Retrieves the option string that contains all applied options. If operation fails, e.g. if no options that apply to the filter have been found, NULL is returned.
|
Retrieves the option string that contains all applied options. If operation fails, e.g. if no options that apply to the filter have been found, NULL is returned.
|
Retrieves the PCL output mode.
|
Returns Postscript macros of the Postscript code as a zero-terminated string. This function is useful when embedding multiple barcodes in a single Postscript document using BCPostscriptToMemoryExt().
The Postscript codes returned by BCPostscriptToMemory() or BCPostscriptToMemoryExt() internally use a series of Postscript macros. These macros are defined at the begin of each barcode. When having several barcodes in a single Postscript document the macros need to be defined only once. To achieve this the Postscript code that defines the macros can be retrieved with this function. The barcodes can then be generated using BCPostscriptToMemoryExt() and setting bIncludeMacros to false. param[in,out] pszMacros Pointer to a memory block. param[in,out] pnSize Size of memory block as allocated. Contains required size after function call.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Returns Postscript macros of the Postscript code as a zero-terminated string. This function is useful when embedding multiple barcodes in a single Postscript document using BCPostscriptToMemoryExt().
The Postscript codes returned by BCPostscriptToMemory() or BCPostscriptToMemoryExt() internally use a series of Postscript macros. These macros are defined at the begin of each barcode. When having several barcodes in a single Postscript document the macros need to be defined only once. To achieve this the Postscript code that defines the macros can be retrieved with this function. The barcodes can then be generated using BCPostscriptToMemoryExt() and setting bIncludeMacros to false. param[in,out] pszMacros Pointer to a memory block. param[in,out] pnSize Size of memory block as allocated. Contains required size after function call.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Determines if the currently active text object (usually the human readable text) is visible.
| true | Text is shown (This is the default for the human readable text). |
| false | Text is not shown (This is the default for the extra texts). ----------------------------------------------------------------------------. |
|
Returns number of implemented QR-Code versions. Returns the number of possible QR-Code versions
| LONG | Number of supported QR-code versions ----------------------------------------------------------------------------. |
|
Returns implemented QR-Code versions. Returns all possible QR-Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetQRCodeVersionCount()) ----------------------------------------------------------------------------. |
|
Returns implemented QR-Code versions. Returns all possible QR-Code versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGetQRCodeVersionCount()) ----------------------------------------------------------------------------. |
|
Returns drawing quality estimate of the barcode (in percent) (Windows only). TBarCode computes the expected barcode quality depending on the used output resolution. This value is a measure for the bar width aberration created by the output resolution of the device context (and therefore of the device itself). The higher the quality value - the better.
| LONG | Bar-code quality [0 (unreadable)...100 (perfect)] ----------------------------------------------------------------------------. |
|
Gets current quiet-zone settings. Returns currently adjusted value.
| LPCRECT | rectangle specifying the quiet-zone dimensions [modules]. ----------------------------------------------------------------------------. |
|
Retrieves the background color of the quiet zone.
|
Retrieves the background color of the quiet zone.
|
Retrieves the background color of the quiet zone.
|
Retrieves the background color of the quiet zone.
|
Gets current measurement unit used for specifying quiet-zones. Returns currently adjusted value.
| e_QZMUnit | Unit enumerator. ----------------------------------------------------------------------------. |
|
Gets current print-ratio string. Returns currently adjusted value.
| LPCSTR | Current ratio-string in format similar to "1B:2B:...1S:2S" ----------------------------------------------------------------------------. |
|
Returns the format hint for the print-ratio. Return the format of the ratio-string (to be used only as hint for users or developers). This hint serves as template for your own print-ratio strings passed to BSSetRatio(). The value depends on the selected barcode symbology. Learn more about it in the Barcode Reference.
| LPCSTR | Bar-code symbology depending string in the format "1B:2B:...:1S:2S" ----------------------------------------------------------------------------. |
|
Returns the default print-ratio string of the barcode. Returns the default print-ratio of the selected barcode type as string. The ratio string looks like "1:3:1:3" where the single values separated by colons corresponds to the ratio-values of the bars or spaces. The format of the ratio-string matches the format of the ratio-hint (see BCGetRatioHint()). This default value is used if no other print-ratio was selected.
| LPCSTR | Bar-code symbology depending string in the format "1:2:...:1:2" ----------------------------------------------------------------------------. |
|
Gets current print-ratio string. Returns currently adjusted value.
| LPCSTR | Current ratio-string in format similar to "1B:2B:...1S:2S" ----------------------------------------------------------------------------. |
|
Gets the current rotation of the barcode. Returns currently adjusted value.
| deg0 | No Rotation. This is the default |
| e_Degree | Rotation (counter-clockwise) ----------------------------------------------------------------------------. |
|
Retrieves the mode that determines the barcode size. If operation fails, eSizeMode_Default (= -1) is returned. \param[in] pBarCode Pointer to barcode structure.
|
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| LPCWSTR | Text to be encoded as barcode (UNICODE) ----------------------------------------------------------------------------. |
|
Determines if human-readable text is printed below or above the barcode.
| true | Text is printed above barcode |
| false | Text is printed below barcode. This is the default ----------------------------------------------------------------------------. |
|
Gets the alignment of the currently active text object (usually the human readable text).
| e_BCAlign | Alignment enumerator ----------------------------------------------------------------------------. |
|
Returns the height of the human readable text area. Returns the height of the human readable text area in the specified measurement unit.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are: - eMUDefault ... logical units of the given device context. - eMUMM ... millimeters - eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch) \param[in] pBarCode Pointer to barcode structure. \param[in] pRect Bounding rectangle. \param[in] hDC Device context handle. \param[in] eUnit Measurement unit.
| 0 | If no text-area used for barcode. |
| >0 | Height of text-area in the specified measurement units. ----------------------------------------------------------------------------. |
|
Determines if the currently active text object (usually the human readable text) is clipped.
|
Retrieves the distance between the human readable text and the barcode.
| -1 | No value set - distance is computed automatically. This is the default |
| LONG | Distance between barcode and human readable text [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets length of barcode input data. Gets the length of the data set by the user.
| LONG | Number of characters ----------------------------------------------------------------------------. |
|
Gets length of barcode input data (after compression). Gets the length of the data to be encoded.
| LONG | Number of characters ----------------------------------------------------------------------------. |
|
Gets the position of the currently active text object. The text position is specified by a bounding rectangle. The coordinates of this rectangle are relative to the bar code's bounding rectangle.
|
Gets the the rotation of the currently active text object. The text rotation is defined relatively to the bar code rotation. This means that both rotation values will be added.
|
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| LPCWSTR | Text to be encoded as barcode (UNICODE) ----------------------------------------------------------------------------. |
|
Gets current state information regarding escape-sequence translation. Returns currently adjusted value.
| true | Escape sequences are translated |
| false | Escape sequences are not translated. This is the default ----------------------------------------------------------------------------. |
|
Determines whether default background color shall be used for given quiet zone side. Returns currently adjusted value.
| BOOL | TRUE if default color shall be used, FALSE otherwise. ----------------------------------------------------------------------------. |
|
Determines whether the structured append mode is active. Returns TRUE if structured append mode is active, otherwise FALSE
| TRUE | if structured append mode is active |
| FALSE | if structured append mode is inactive (default) ----------------------------------------------------------------------------. |
|
Gets the current index of the symbol in Aztec Code Structured Append mode. Returns currently adjusted value.
| A | '..'Z'] which means 1..26. The default value is 'A'. ----------------------------------------------------------------------------. |
|
Gets the current index of the symbol in Aztec Code Structured Append mode. Returns currently adjusted value.
| A | '..'Z'] which means 1..26. The default value is 'A'. ----------------------------------------------------------------------------. |
|
Gets the adjusted Message-ID in Aztec Code Structured Append mode. Returns currently adjusted value.
| NULL | No Message-ID set. This is the default. |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Gets the adjusted Message-ID in Aztec Code Structured Append mode. Returns currently adjusted value.
| NULL | No Message-ID set. This is the default. |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Gets the adjusted total number of symbols in the Aztec Code Structured Append mode. Returns currently adjusted value
| A | '..'Z'] which means 1..26. The default value is 'A'. ----------------------------------------------------------------------------. |
|
Gets the adjusted total number of symbols in the Aztec Code Structured Append mode. Returns currently adjusted value
| A | '..'Z'] which means 1..26. The default value is 'A'. ----------------------------------------------------------------------------. |
|
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| TRUE | data is encoded in binary format |
| FALSE | data is encoded in mixed (=text and binary) format ----------------------------------------------------------------------------. |
|
Gets the number of error correction codewords in percent of the symbol size Returns currently adjusted value
| 0..99 | |
| FALSE | data is encoded in mixed (=text and binary) format ----------------------------------------------------------------------------. |
|
Gets the current Aztec Code Encoding Format. Returns currently adjusted value
| eAztecFm_Default | This is the default |
| e_AztecFormat | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current Aztec Code Encoding Format specifier for industry format. Returns currently adjusted value
| \0 | No format specifier. This is the default |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current Aztec Code Encoding Format specifier for industry format. Returns currently adjusted value
| \0 | No format specifier. This is the default |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Determines whether the symbol is in Aztec Rune Mode. Returns currently adjusted value
| TRUE | symbol is in Aztec Rune mode (numbers from 0 to 255) |
| FALSE | symbol is in Aztec Code mode ----------------------------------------------------------------------------. |
|
Gets currently adjusted Aztec Code symbol size. Returns currently adjusted value.
| eAztecSz_Default | No value set. This is the default (TBarCode determines the optimal symbol size automatically) |
| e_AztecSizes | Otherwise ----------------------------------------------------------------------------. |
|
Gets the number of adjusted Codablock-F columns. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 4..62 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the adjusted Codablock-F code format. Returns currently adjusted value.
| eCBFPr_Default | No value set. This is the default |
| e_CBFFormat | Otherwise ----------------------------------------------------------------------------. |
|
Gets the adjusted row height for Codablock-F. Returns currently adjusted value.
| -1 | No value set. This is the default |
| LONG | Row height [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets the currently adjusted row separator height for Codablock-F. Returns currently adjusted value.
| -1 | No value set. This is the default |
| LONG | Row separator height [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets the adjusted number of Codablock-F rows. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 2..44 | ] Otherwise ----------------------------------------------------------------------------. |
|
Determines the source of the error when creating composite symbologies. If BCCreate() returns with an error this function indicates whether the error happened in the base symbology or in the composite symbol. Example: If the composite component could not be created due to wrong data this function returns true. \param[in] pBarCode Pointer to barcode structure.
| true | Error occurred during creation of the composite component |
| false | Error occurred during creation of the base symbology ----------------------------------------------------------------------------. |
|
Check if a composite component is available for the current base symbology. Used with GS1 Composite Symbology. Tells you if a specific 2D composite component (CC-A/B/C) can be combined with the selected base symbology. Adjust the base symbology first with BCSetBCType(). \param[in] pBarCode Pointer to barcode structure. \param[in] eCCType Composite component type (symbology of composite component).
| true | The specified composite component is available |
| false | The specified composite component is not available ----------------------------------------------------------------------------. |
|
Determines if a composite component was created. After BCCreate() you can check if a composite component is present (and therefore is part of the created symbol). This method is useful if you adjusted a composite component to be created but - depending on missing input data - the composite component may be omitted (only the linear bar code appears).
| true | A composite component was created |
| false | No composite component was created ----------------------------------------------------------------------------. |
|
Gets the adjusted File-ID in Data Matrix Structured Append mode. Returns currently adjusted value.
| -1 | No Structured Append. This is the default |
| LONG | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current index of the symbol in Data Matrix Structured Append mode. Returns currently adjusted value.
| -1 | No Structured Append. This is the default |
| 1..16 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the adjusted total number of symbols in Data Matrix Structured Append mode. Returns currently adjusted value
| -1 | No Structured Append. This is the default |
| 2..16 | ] Otherwise ----------------------------------------------------------------------------. |
|
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| TRUE | data is encoded in binary format |
| FALSE | data is encoded in mixed (=text and binary) format ----------------------------------------------------------------------------. |
|
Gets the current Data Matrix Encoding Format. Returns currently adjusted value
| eDMPr_Default | This is the default |
| e_DMFormat | Otherwise ----------------------------------------------------------------------------. |
|
Gets if rectangular Data Matrix sizes are preferred. Returns currently adjusted value.
| false | Square sizes are preferred. This is the default |
| true | Rectangular sizes are preferred. ----------------------------------------------------------------------------. |
|
Gets currently adjusted Data Matrix symbol size. Returns currently adjusted value.
| eDMSz_Default | No value set. This is the default (TBarCode determines the optimal symbol size automatically) |
| e_DMSizes | Otherwise ----------------------------------------------------------------------------. |
|
|
|
|
|
|
|
|
|
|
|
|
Gets the current DotCode size. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| \0 | No size. This is the default |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Gets size mode of DotCode symbol. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| eDCSm_Default | No value set. This is the default. Ratio between columns and rows is "3:2". |
| e_DCSizeMode | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current DotCode size. Returns currently adjusted value. The meaning of the size value depends on the current size mode: - eDCSm_Default: the size value is ignored. The ratio between width and height is "3:2". - eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). - eDCSm_FixedWidth: the size value contains the width in number of dots. - eDCSm_FixedHeight: the size value contains the height in number of dots. - eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh").
| \0 | No size. This is the default |
| LPCSTR | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current Han Xin Code error correction level (ECL). Returns currently adjusted value.
| eHanXinEC_L1 | This is the default |
| e_HanXinECLevel | Otherwise ----------------------------------------------------------------------------. |
|
Determines whether the data is encoded in binary format. Returns TRUE if data is encoded in binary mode only, otherwise FALSE
| TRUE | data is encoded in binary format |
| FALSE | data is encoded in mixed (=text and binary) format ----------------------------------------------------------------------------. |
|
Gets the current Han Xin Code mask pattern (0-3). Returns currently adjusted value
| eHanXinMsk_Default | No value set. This is the default |
| e_HanXinMask | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| eHanXinVers_Default | No value set. This is the default and the minimal symbol size will be computed automatically |
| e_HanXinSizes | Otherwise ----------------------------------------------------------------------------. |
|
Gets Micro PDF encoding mode. Returns currently adjusted value.
| eMPDFPr_Default | No value set. This is the default |
| e_MPDFMode | Otherwise ----------------------------------------------------------------------------. |
|
Gets Micro PDF Version (symbol size). Returns currently adjusted value.
| eMPDFVer_Default | No value set. This is the default |
| e_MPDFVers | Otherwise ----------------------------------------------------------------------------. |
|
Returns number of implemented MicroPDF417 versions.
| LONG | Number of supported MicroPDf417 versions ----------------------------------------------------------------------------. |
|
Returns all possible MicroPDF417 versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGet_MPDF417_VersionCount()) ----------------------------------------------------------------------------. |
|
Returns all possible MicroPDF417 versions (symbol sizes) in an array.
| LPCSTR | * String array (size is available via BCGet_MPDF417_VersionCount()) ----------------------------------------------------------------------------. |
|
Gets the current Micro QR-Code mask pattern (0-7). Returns currently adjusted value
| eMQRMsk_Default | No value set. This is the default |
| e_MQRMask | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| eMQRVers_Default | No value set. This is the default and the minimal symbol size will be computed automatically |
| e_MQRVersion | Otherwise ----------------------------------------------------------------------------. |
|
Gets index of current symbol in "Structured Append" mode of MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| -1 | No value set. This is the default |
| 1..8 | ] Otherwise |
|
Gets total number of symbols in "Structured Append" mode of MaxiCode. Returns currently adjusted value \param[in] pBarCode Pointer to barcode structure.
| -1 | No value set. This is the default |
| 2..8 | ] Otherwise |
|
Gets current encoding mode for MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| 4 | This is the default |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Returns the current date encoded in the MaxiCode preamble. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 00...99 | ] Otherwise |
|
Returns the current date encoded in the MaxiCode preamble. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 00...99 | ] Otherwise |
|
Gets country code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 000...999 | ] Otherwise |
|
Gets country code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 000...999 | ] Otherwise |
|
Gets postal code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| LPCSTR | See BCSet_Maxi_SCM() |
|
Gets postal code of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| LPCSTR | See BCSet_Maxi_SCM() |
|
Gets service class of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 000...999 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets service class of MaxiCode Structured Carrier Message (SCM). Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| NULL | No value set. This is the default |
| 000...999 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets current undercut value of MaxiCode. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| -1 | No value set. This is the default and corresponds to 75% undercut. |
| 1..100 | ] Otherwise ----------------------------------------------------------------------------. |
|
Determines whether the usage of the "Preamble" is activated. Returns currently adjusted value. \param[in] pBarCode Pointer to barcode structure.
| true | Preamble is activated |
| false | Preamble is not activated. This is the default |
|
Gets Macro PDF417 Addressee. Returns currently adjusted value
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 Addressee. Returns currently adjusted value
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
\param[in] pBarCode Pointer to barcode structure.
| -1 | No value set. This is the default |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Gets number of PDF417 code words. Gets number of PDF417 code words.
| LONG | Number of used PDF417 code words ----------------------------------------------------------------------------. |
|
Gets number of PDF417 columns. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 1...30 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets current PDF417 error correction level. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 0...8 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the current PDF417 encoding mode. Gets the current PDF417 encoding mode, which can be default or binary. \param[in] pBarCode Pointer to barcode structure.
| e_PDFMode | The PDF417 encoding mode ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 FileID. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 FileID. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 File Name. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 File Name. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 File Size. Returns currently adjusted value
| -1 | No value set. This is the default |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Gets PDF417 row to column ratio. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise "rows:columns" ----------------------------------------------------------------------------. |
|
Gets PDF417 row to column ratio. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise "rows:columns" ----------------------------------------------------------------------------. |
|
Gets PDF417 row-height. Returns currently adjusted value.
| -1 | No value set. This is the default |
| >0 | Otherwise [1/1000 mm] ----------------------------------------------------------------------------. |
|
Gets number of PDF417 rows. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 3...90 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 segment count. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 1...99999 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets current Macro-PDF417 segment index. Returns currently adjusted value.
| -1 | No value set. This is the default |
| 1...99999 | ] Otherwise ----------------------------------------------------------------------------. |
|
Returns if this is the last symbol within a Macro PDF417 symbol-chain. Returns currently adjusted value.
| true | Current symbol is the last symbol within this chain |
| false | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 Sender. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 Sender. Returns currently adjusted value.
| NULL | No value set. This is the default |
| String | Otherwise ----------------------------------------------------------------------------. |
|
Gets Macro PDF417 Time Stamp. Returns currently adjusted value.
| -1 | No value set. This is the default |
| >0 | Otherwise ----------------------------------------------------------------------------. |
|
Gets the structured append index of the symbol when using QR-Code "Structured Append". Returns currently adjusted value.
| -1 | No value set. This is the default |
| 1..16 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the structured append parity when using QR-Code "Structured Append". Returns currently adjusted value.
| 0 | No value set. This is the default |
| 0..255 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the total number of symbol when using QR-Code "Structured Append". Returns currently adjusted value.
| -1 | No value set. This is the default |
| 2..16 | ] Otherwise ----------------------------------------------------------------------------. |
|
Gets the current QR-Code error correction level (ECL). Returns currently adjusted value.
| eQREC_Low | This is the default |
| e_QRECLevel | Otherwise ----------------------------------------------------------------------------. |
|
Gets current QR-Code Format application indicator (used with Industry format). Returns currently adjusted value.
| NULL | No value set. This is the default |
| 0...99 | ],[a-z, A-Z] Otherwise ----------------------------------------------------------------------------. |
|
Gets current QR-Code Format application indicator (used with Industry format). Returns currently adjusted value.
| NULL | No value set. This is the default |
| 0...99 | ],[a-z, A-Z] Otherwise ----------------------------------------------------------------------------. |
|
Gets the current encoding format. Returns currently adjusted value.
| eQRPr_Default | No value set. This is the default |
| e_QRFormat | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current state of the QR-Code "Compact Kanji / Chinese" option. Returns currently adjusted value
| eQRMBCompactionNone | Do not compact Multi Byte character sets (Default) |
| eQRMBCompactionKanji | Kanji characters (Shift JIS X 0208) should be compacted |
| eQRMBCompactionChinese | Chinese characters (GB2312) should be compacted ----------------------------------------------------------------------------. |
|
Gets the current QR-Code mask pattern (0-7). Returns currently adjusted value
| eQRMsk_Default | No value set. This is the default |
| e_QRMask | Otherwise ----------------------------------------------------------------------------. |
|
Gets the current symbol version (the symbol size). Returns currently adjusted value.
| eQRVers_Default | No value set. This is the default and the minimal symbol size will be computed automatically |
| e_QRVersion | Otherwise ----------------------------------------------------------------------------. |
|
Gets currently adjusted data segments per row (GS1 DataBar/RSS Expanded Stacked only). Returns currently adjusted value.
| -1 | No value set. This is the default |
| 2..22 | ] Otherwise ----------------------------------------------------------------------------. |
|
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Retrieves whether the barcode type can be a composite barcode. Only certain types of barcodes can have composite components. You can use this function to find out if a certain barcode type supports a composite component. \param[in] barcodeType e_BarCType. The type of barcode.
| true | The given barcode type supports a composite component. |
| false | The given barcode type cannot be a composite barcode. --------------------------------------------------------------------------. |
|
Retrieves whether the barcode type can be a composite barcode with a certain component. Only certain types of barcodes can have composite components, and not all composite barcodes support all type of component types. You can use this function to find out if a certain barcode type supports a certain type of composite component. \param[in] barcodeType e_BarCType. The type of barcode. \param[in] componentType e_CCType. The type of composite component.
| true | The given barcode type supports the given composite component. |
| false | The given barcode type cannot be a composite barcode, or it the does not support the given type of component. --------------------------------------------------------------------------. |
|
Checks whether ImageMagick-Plug-In is available.
TRUE (for backwards-compatibility). | BOOL |
Always TRUE. ----------------------------------------------------------------------------. |
|
Returns type of current input data. Determines if barcode text was passed as UNICODE string or as ASCII string.
| true | The barcode data was set with BCSetTextW(). |
| false | The barcode data was set with BCSetTextA(). ----------------------------------------------------------------------------. |
|
[NOT IMPLEMENTED YET!]
Determines if word wrapping is enabled for the currently active text object (usually the human readable text).
|
License TBarCode. Licenses the library with the license key provided by TEC-IT. All demo-mode restrictions are removed. Licensing must take place before you draw a barcode or generate a barcode image file. After licensing the library will stay in licensed mode until it is unloaded from memory. Call this function and pass in the license key you have got after purchasing your license. You receive the license key from TEC-IT Datenverarbeitung GmbH (you can order through https://www.tec-it.com/order). The license kind, the number of licenses and the licensee string have to be passed in exactly as given, they are checked against the license key.
| ERRCODE | Returns always ErrOk (0) - even if license key is invalid ----------------------------------------------------------------------------. |
|
License TBarCode. Licenses the library with the license key provided by TEC-IT. All demo-mode restrictions are removed. Licensing must take place before you draw a barcode or generate a barcode image file. After licensing the library will stay in licensed mode until it is unloaded from memory. Call this function and pass in the license key you have got after purchasing your license. You receive the license key from TEC-IT Datenverarbeitung GmbH (you can order through https://www.tec-it.com/order). The license kind, the number of licenses and the licensee string have to be passed in exactly as given, they are checked against the license key.
| ERRCODE | Returns always ErrOk (0) - even if license key is invalid ----------------------------------------------------------------------------. |
|
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
true: Relative positioning is used - false: Absolute positioning is used | ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
true: Relative positioning is used - false: Absolute positioning is used | ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a PCL-file. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode as PCL (Level 5) into memory block. The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode as PCL Level 5 into memory block (extended version). In addition to BCPCLToMemory() the required output resolution can be specified. Beside this, the parameter bRelPos switches between absolute or relative positioning.
The origin of the coordinate space in PCL the is upper, left corner of a page. The positive y-axis points downwards. \param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in,out] pnSize Size of memory block as allocated. Contains required size after function call. \param[in] pRect Bounding rectangle [1/1000 mm]. \param[in] bRelPos Relative or absolute positioning. - true: Relative positioning is used - false: Absolute positioning is used
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Writes barcode as PDF segment into a memory-block
\param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in, out] pnSize Size of memory block as allocated. Contains required size after function call (including a terminating 0-byte). \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a PDF file.
\param[in] pBarCode Pointer to barcode structure. \param[in] szFilename Path and name of file. \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a PDF file.
\param[in] pBarCode Pointer to barcode structure. \param[in] szFilename Path and name of file. \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode as PDF into a memory-block
\param[in] pBarCode Pointer to barcode structure. \param[in] pHandle Pointer to memory block. \param[in, out] pnSize Size of memory block as allocated. Contains required size after function call (including a terminating 0-byte). \param[in] pRect Bounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a Postscript-file. Saves barcode (in EPS-format - Encapsulated Postscript) to a file.
The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a Postscript-file. Saves barcode (in EPS-format - Encapsulated Postscript) to a file.
The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode (Postscript) into memory-block. Writes barcode into the specified memory block. The barcode is represented in vectorized PostScript (no bitmaps!).
The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode (Postscript) into memory-block (extended version). Saves barcode in a memory block. The barcode is represented in vectorized PostScript (no bitmaps!). This function works like BCPostscriptToMemory() but allows additional specification of the required output resolution. Beside this it can be selected, if barcode-specific macros are to be included into the generated Postscript code.
The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a SVG-file. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as a SVG-file. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Writes barcode (SVG) into memory-block. The origin of the coordinate space in SVG the is upper, left corner of a page. The positive y-axis points downwards.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves the barcode to an image-file (Windows only). Saves the barcode to an image-file (format Bmp, Jpg, Png, Eps, Emf...). The values of lXSize and lYSize should be increased, if the barcode is not readable. The values of dXRes and dYRes can affect printing size when printing from graphic- or painting programs. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
BCSaveImageEx instead. | ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode to an image-file (extended version, Windows only). Saves the content of the barcode object as image-file with respect to a specified device context (if not needed hDC can be set to 0). The values of lXSize and lYSize should be increased, if the barcode is not readable or if the data density is high. The values of dXRes and dYRes can affect the printing size when printing from graphic- or painting programs. The image quality sets the compression algorithm (depending on the image type). With vector-EPS files you can choose between using Windows fonts (nQuality = 0) and using Postscript compatible fonts (nQuality = 1). A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode to an image-file (extended version, Windows only). Saves the content of the barcode object as image-file with respect to a specified device context (if not needed hDC can be set to 0). The values of lXSize and lYSize should be increased, if the barcode is not readable or if the data density is high. The values of dXRes and dYRes can affect the printing size when printing from graphic- or painting programs. The image quality sets the compression algorithm (depending on the image type). With vector-EPS files you can choose between using Windows fonts (nQuality = 0) and using Postscript compatible fonts (nQuality = 1). A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
The values of XSize and YSize should be increased, if the barcode is not readable or requires a high printing resolution. The values of XRes and YRes can affect the printing size when printing from graphic- or painting programs (but not when printing from the browser!). The buffer will be allocated on the global heap. Retrieve the buffer size in Bytes with GlobalSize((HGLOBAL)GlobalHandle(szBuffer)). It is recommended to lock the buffer before reading with pMem = GlobalLock (hMem) and unlock it afterwards (GlobalUnlock(hMem)). When no longer needed the buffer must be released by calling GlobalFreePtr(buffer) (WINDOWSX.h macro).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves barcode as image into a memory buffer (extended version, Windows only). Like BCSaveImageToBuffer() with the additional possibility to specify the image quality. For a description refer to BCSaveImageEx().
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Saves the barcode to an image-file (Windows only). Saves the barcode to an image-file (format Bmp, Jpg, Png, Eps, Emf...). The values of lXSize and lYSize should be increased, if the barcode is not readable. The values of dXRes and dYRes can affect printing size when printing from graphic- or painting programs. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".
BCSaveImageEx instead. | ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets 2D Composite Component (= CC) Type. Enables or disables generation of an GS1 Composite Symbology and adjusts the type of the 2D composite component (CC-A, CC-B or CC-C). The CC is printed on top of the base symbol, which can be an GS1 DataBar or an EAN-128 symbology. For usual applications (using GS1 Composite) we recommend to set the CC-Type to eCC_Auto. In this case TBarCode computes the optimal CC automatically. Default: eCC_None.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the currently active text index. The user can only change the setting of the text that is currently active.
|
Sets auto-correct option for input data. If set to true TBarCode performs the following operations on the input data (before creating the bar code): - Code 39: Trim leading/trailing '*' characters (start/stop characters are added by the encoder) - ISBN-13/ISSN/ISMN: Remove '-' characters (not encoded into the bar code) - Code 2of5 Interleaved: Insert a leading zero if the number of data digits is odd (2/5 IL supports only even number of digits) - Code-128: Remove multiple occurences of leading FNC1 and all occurences of trailing FNC1 characters. - GS1-128: Remove all leading and trailing FNC1 characters (the FNC1 at first position is added by the encoder).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Chooses the required barcode type (symbology). Specifies the type of the barcode to be generated (the so-called symbology). Look at the Barcode Reference to get an overview of the enumerations. The default symbology used by TBarCode is Code128. \param[in] pBarCode Pointer to barcode structure. \param[in] eType Bar-code type (barcode symbology).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets the background color the of barcode.
|
Sets the background color of the barcode.
|
Sets the background color of the barcode.
|
Sets the background color of the barcode.
|
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 bar-width reduction (Pixel-Shaving) in given unit. Specifies the reduction of the bar-widths. The width of a bar in the barcode is reduced by the given value in the given unit. This property is useful when you have to deal with dot gain in the printing process. Example: On inkjet printers the bars appear wider than specified because the ink spreads a little bit. Same with (high) toner saturation on laser printers. You can compensate this effect by setting a bar-width reduction (also called BWR or "Pixel Shaving") to a suitable value. You have to make tests to find optimal settings because the dot gain depends on the printing method and printing surface (paper). The printed module-width is equal to the theoretically optimal module-width reduced by the reduction value.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the color of the barcode.
|
Sets the color of the barcode.
|
Sets the color of the barcode.
|
Sets the color of the barcode.
|
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 the user-defined data that is passed to the callback functions.
Each callback function for barcode drawing provides a parameter called 'customData'. This parameter can be used to pass user-defined data to the callback functions. \param[in] pBarCode Pointer to barcode structure. \param[in] customData User-defined data for callback functions.
|
Chooses check-digit method to be used. Specifies the calculation method for the check-digit. Possible values are listed in the Barcode Reference.
The method for the check-digit calculation used by TBarCode depends on the adjusted barcode type. In order to make the product as user-friendly as possible, a standard (default) method for each barcode type is supplied. Please note that for some bar codes there is no default check digit, but using a specific method is recommended in their specification. Some symbologies have an internal check sum (e.g. Modulo-103 used with Code-128). This check sum is always part of the generated bar code - regardless what the user specifies here.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the the character spacing of the currently active text object. Positive values increment the spacing, negative values decrement it. The currently active text object can be selected by calling BCSetActiveTextIndex().
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. See e_EncodingMode and e_CodePage for a more detailed description.
If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page as a code page identifier.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets the input data encoding code page. If another than a predefined code page shall be used that means, if the code page is set to eCodePage_Custom, this function specifies in which code page the input data is encoded. Otherwise the value returned by BCGetCodePage is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets the color the of barcode. Specifies the color of the bars (or dots) of the barcode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the color of the barcode background. Specifies the background color of the barcode. This color is used to draw the spaces of the barcode when the BackStyle is set to OPAQUE.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the color of the human readable text. Used only when drawing of the human-readable text is activated (see BCSetPrintText())
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the color mode (CMYK, RGB, or Grayscale). \param[in,out] pBarcode Pointer to barcode structure. \param[in] mode The color mode. ----------------------------------------------------------------------------.
|
Sets compression mode for barcode content \param[in,out] pBarCode Pointer to barcode structure. \param[in] eCompression Compression mode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------. |
|
Activates or deactivates conversion of Windows GDI drawing context (DC). By default all DCs are internally converted, so that logical units are himetric (1/100 mm). This conversion can be turned off if the DC given to the drawing routines already uses himetrics as logical units. Or you can turn off this conversion to use a DC with custom scaling. \param[in] pBarCode Pointer to barcode structure. \param[in] bConvertDC TRUE if DC should be converted. FALSE if conversion should be turned off.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets user defined resolution. Sets output resolution to be used in bar code drawing / calculation functions. If not set (default), the resolution of the available device context is used (e.g. screen resolution or printer resolution). Can be used to estimate the quality of a bar code for a specific output resolution (BCGetQuality()). For other purposes this function should be used careful, because bar code dimensions can change unexpectedly.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the type of decoder that will be used to read this barcodes. The module width will be optimized for this type of scanner. \param[in,out] pBarCode Pointer to barcode structure. \param[in] eDecoder Type of scanner.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------. |
|
Sets the content of the currently active text object (usually the human readable text).
|
Sets the content of the currently active text object (usually the human readable text).
|
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars. TBarCode normally draw bars in high quality mode that bases on specialized GDI-functionality. Some printer drivers do not handle this method correctly (invisible, too short bars or wrong clipping). If this happens activate the conventional method (bars are drawn as filled rectangles). The conventional method may result in decreased barcode quality for devices with low output resolution.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Selects the method for drawing bars (Windows only). Sets the GDI drawing-method used for painting the bars.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data. In dependence on whether the input data is UNICODE or single character encoded the mode has different effects. See e_EncodingMode and e_CodePage for a more detailed description.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Activates the substitution of font names for EPS. Substitutes Windows font-names with Postscript-compatible fonts in functions BCSaveImage() and BCSaveImageExt() when using EPS Vector format.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the font color of the currently active text object (usually the human readable text).
|
Sets the font color of the currently active text object (usually the human readable text).
|
Sets the font color of the currently active text object (usually the human readable text).
|
Sets the font color of the currently active text object (usually the human readable text).
|
Sets the font size [points] of the currently active text object (usually the human readable text). If the font size is not set, a suitable font size is automatically calculated depending on the barcode type and barcode dimensions.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the font of the currently active text object (usually the human readable text). The name of the font depends on the output format, for example:
\li Postscript accepts names such as Helvetica, Courier, Times-Roman, Helvetica-Bold, etc.
\li PCL accepts names and font numbers such as Helvetica (maps to 16602), Times (maps to 4101), Courier (maps to 4099) or any font number (optional: name and number can be followed by 'Bold')
Consult a Postscript or PCL reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the font of the currently active text object (usually the human readable text). The name of the font depends on the output format, for example:
\li Postscript accepts names such as Helvetica, Courier, Times-Roman, Helvetica-Bold, etc.
\li PCL accepts names and font numbers such as Helvetica (maps to 16602), Times (maps to 4101), Courier (maps to 4099) or any font number (optional: name and number can be followed by 'Bold')
Consult a Postscript or PCL reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily.
Please refer to the Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily.
Please refer to the Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets call-back function for drawing the bars of a barcode. these functions informs TBarCode that drawing of the bars (for linear barcodes) is done by the specified function.
Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets call-back function for drawing colored bars. these functions informs TBarCode that drawing of colored bars (e.g. the Swiss cross in Swiss QR Code) is done by the specified function.
Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets call-back function for drawing the MaxiCode finder rings. This function informs the TBarCode drawing functions that drawing of the MaxiCode hexagons is done by a callback function.
Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets call-back function for drawing the MaxiCode finder rings. This function informs the TBarCode drawing functions that drawing of the MaxiCode finders is done by a callback function.
Use this function to implement your custom drawing routines for specialized output requirements. Default: no callback function is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the callback function for drawing a single row of a barcode. these functions informs TBarCode that drawing of a single barcode row (one row for linear barcodes, multiple rows for 2D or stacked codes) is done by the specified function. The specified function will be called from BCDraw() instead of the built-in row-drawing functionality. Default: no callback function is used.
Use this function to implement your custom drawing routines for specialized output requirements.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
|
|
Determines whether TBarCode shall ignore the resolution from the device context (Windows only).
In some (rare) cases the Windows GDI device context does not contain a valid resolution. In such cases you can overwrite the resolution of the device context with a custom resolution. Use BCSetDPI() to set the custom resolution.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets the font of the currently active text object (usually the human readable text - Windows only). Sets the font characteristics used for the human readable text and the extra texts.
LOGFONTA structure. The font size in field lfHeight must be given in Point [1/72"]. We suggest to leave the field lfWidth 0. If you have to change it, you must set the width in 1/1000 mm.
|
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 a fixed module width (value is passed as string [0.001 mm]). The module width is defined as the width of the smallest element (bar or space) a barcode is using. Values are specified is 1/1000 mm. If the module width is not set explicitly (default), the module width is automatically adapted to the object size (Bounding rectangle) and the amount of data to be encoded. If a value is set, the width of the modules and therefore of the whole barcode can be controlled (this may also influence the readability!). If set, the barcode width depends on the amount of data encoded in the barcode. For most barcode symbologies the module width should not fall below 0.19 mm. When drawing (Paint) the size of the bounding rectangle must be wide enough to avoid clipping.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets a fixed module width (value is passed as numeric parameter [0.001 mm]). Sets a fixed module width passing a numeric value.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets a fixed module width (value is passed as string [0.001 mm]). The module width is defined as the width of the smallest element (bar or space) a barcode is using. Values are specified is 1/1000 mm. If the module width is not set explicitly (default), the module width is automatically adapted to the object size (Bounding rectangle) and the amount of data to be encoded. If a value is set, the width of the modules and therefore of the whole barcode can be controlled (this may also influence the readability!). If set, the barcode width depends on the amount of data encoded in the barcode. For most barcode symbologies the module width should not fall below 0.19 mm. When drawing (Paint) the size of the bounding rectangle must be wide enough to avoid clipping.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Checks if the barcode fits into the bounding rectangle. This property means that the barcode must fit into the bounding rectangle during drawing. Background: When specifying a fixed module width the barcode width (not the width of the bounding rectangle) changes corresponding to the amount of data characters. In addition, "MustFit" verifies if the module width is less than 1 pixel (which is treated as error in this case) If "MustFit" is activated an error may be produced due to the above reasons during the BCDraw() method.
| 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. ----------------------------------------------------------------------------. |
|
Optimize barcode resolution. If this feature is activated, the module width will be adapted to the resolution of the output device (or output format) by TBarCode. All bars/spaces of a barcode are aligned to the output raster in a way that only full pixels for the bar (space) widths are used. This process depends either on the DPI in the drawing DC (screen or printer driver) or the DPI property in the TBarCode Library. Using optimization the readability of the barcode is (quite) independent from the given resolution (except the resulting bar code will be too small). Using this option is recommended for bitmap formats or low output resolutions (e.g. screen or thermal transfer printers).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the barcode option string. \details The option string consists of at least one name/value pair followed by zero or more name/value pairs separated by space characters.
The format is: name=value{ name=value}.
A name must be a valid predefined option name. Values can be given in the following ways: \li As Simple Values.
Simple values are passed as they are. Spaces must be escaped by a preceding "". Valid values for boolean options are true and false.\n e.g.: NAME_BOOL=true NAME_NUMBER=123 NAME_DOUBLE=123.45 NAME_TEXT=ABC NAME_WITHSPACE=ABC abc \li As Text Values.
Text values are surrounded by single quotes. They may contain spaces which don't have to be escaped. Single quotes that occur in the text have to be escaped by a preceding "".
e.g.: NAME_TEXT='ABC' NAME_WITHSPACE='ABC abc' NAME_WITHQUOTE='Robin's Nest' \li As Complex Values.
Complex values are surrounded by curly braces "{...}". Complex value may consist of other simple, text, or complex values.
e.g.: NAME_COMPLEX={NAME_TEXT='ABC' NAME_NUMBER=123}
\details Following options are currently supported: \li DRAW_PS_Overprint=[bool] - enable/disable overprinting for PostScript output. \li DRAW_BarWidthReduction_Legacy=[enum] - enable legacy mode for bar width reduction (0 .. disable, 1 .. reduce each module, 2 .. reduce right and bottom). \li DRAW_BarWidthReduction_Values={x=[double] y=[double] unit=[enum]} - set the bar width reduction separated for horizontal (x) and vertical (y) destruction with given unit (see BCSetBarWidthReduction). \li DRAW_OptResolution=[bool] - optimize resolution (see BCSetOptResolution). \li CHECK_CDMethod=[enum] - set the check digit method (see BCSetCDMethod, e_CDMethod). \li CHECK_CodaBarIncludeStartStop=[bool] - determine whether to include start and stop character of CodaBar2 into check digit calculation. \li DATA_TranslateEsc=[bool] - enable/disable translation of escape sequences (see BCSetTranslateEsc). \li DATA_CodePage=[enum] - set the code page for the barcode data (see BCSetCodePage, e_CodePage). \li DATA_Format=[string] - set the format string (see BCSetFormatW). \li MQR_Version=[enum] - set the Micro QR-Code version (see BCSet_MQR_Version, e_MQRVersion). \li MQR_Mask=[enum] - set the Micro QR-Code mask (see BCSet_MQR_Mask, e_MQRMask). \li QrCode_Version=[enum] - set the QR-Code version (see BCSet_QR_Version, e_QRVersion). \li QrCode_Format=[enum] - set the QR-Code format (see BCSet_QR_Format, e_QRFormat). \li QrCode_FmtAppIndicator=[string] - set the QR-Code format application indicator (see BCSet_QR_FmtAppIndicator). \li QrCode_ECLevel=[enum] - set the QR-Code error correction level (see BCSet_QR_ECLevel, e_QRECLevel). \li QrCode_Mask=[enum] - set the QR-Code mask (see BCSet_QR_Mask, e_QRMask). \li QrCode_KanjiChineseCompaction=[enum] - set the QR-Code compaction mode (see BCSet_QR_KanjiChineseCompaction, e_QRMBCompaction). \li QrCode_Append={sum=[int] index=[int] parity=[byte]} - set the QR-Code structured append (see BCSet_QR_Append). \li QrCode_EncodingMode=[enum] - set the QR-Code Encoding Mode (0 .. optimal, 1 .. prefer binary/Byte, 2 .. prefer alphanumeric). \li QrCode_SizeFactorSwissCross=[double] - set the size factor of the Swiss Cross in the Swiss QR Code (default=1.0). \li DataMatrix_Size=[enum] - set the Data Matrix Size (see BCSet_DM_Size, e_DMSizes). \li DataMatrix_Rectangular=[bool] - enforce a rectangular symbol (see BCSet_DM_Rectangular). \li DataMatrix_Format=[enum] - set the Data Matrix format (see BCSet_DM_Format, e_DMFormat). \li DataMatrix_Append={sum=[int] index=[int] fileId=[int]} - set the Data Matrix structured append (see BCSet_DM_Append). \li DataMatrix_EncodingMode=[enum] - set the Data Matrix Encoding Mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer ASCII, 3 .. prefer C40). \li DataMatrix_ECC144Alternative=[bool] - enable/disable alternative ECC for symbol size 144x144. \li DataMatrix_CaptivaScanner=[bool] - enable/disable CAPTIVA scanner mode. \li HanXin_Version=[enum] - set the Han Xin version (see BCSet_HanXin_Version, e_HanXinSizes). \li HanXin_EnforceBinaryEncoding=[bool] - do enforce binary encoding (see BCSet_HanXin_EnforceBinaryEncoding). \li HanXin_ECLevel=[enum] - set the Han Xin error correction level (see BCSet_HanXin_ECLevel, e_HanXinECLevel). \li HanXin_Mask=[enum] - set the Han Xin mask (see BCSet_HanXin_Mask, e_HanXinMask). \li DotCode_Size={mode=[enum] size=[string]} - set the DotCode Size (see BCSet_DotCode_Size, e_DCSizeMode). \li DotCode_PrintDirection=[enum] - set the DotCode print direction (see BCSet_DotCode_PrintDirection, e_DCPrintDirection). \li DotCode_EnforceBinaryEncoding=[bool] (deprecated, please use DotCode_PreferredEncoding) - do enforce binary encoding (see BCSet_DotCode_EnforceBinaryEncoding). \li DotCode_PreferredEncoding=[enum] - set the DotCode preferred encoding mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer Mode A, 3 .. prefer Mode B). \li DotCode_Format={format=[enum] specifier=[string]} - set the DotCode format (see BCSet_DotCode_Format, e_DCFormat). \li DotCode_Mask=[enum] - set the DotCode mask (see BCSet_DotCode_Mask, e_DCMask). \li DotCode_Append={on=<bool> total=<int> index=<int>} - set the DotCode structured append (see BCSet_DotCode_AppendActive, BCSet_DotCode_Append). \li DotCode_ExtMaskSelection=[bool] - use the extended DotCode mask selection algorithm. This flag has only effect, when no specific mask is selected. \li PDF417_MacroPDF417={fileId=[string] index=[int] last=[bool] count=[int]} - set the most common Macro PDF417 parameters. \li EanUpc_NotchHeight=[int] - set the EAN/UPC notch height (see BCSetNotchHeight). \li EanUpc_ShowQZMarker=[bool] - show quiet zone markers (see Format Setting '<'). \li EanUpc_LegacyDraw=[bool] - enable legacy draw mode (without increasing or decreasing the module width). \li Code128_LegacyMode=[bool] - enable legacy encoding mode (no extended encoding, mapping of umlauts). \li Hibc_Lic_Version=[enum] - set the HIBC LIC standard version (0 .. V2.2, 1 .. V2.4, 2 .. V2.6). \li Hibc_Pas_Version=[enum] - set the HIBC PAS standard version (0 .. V1.2, 1 .. V1.3). \li Hibc_Replace0=[bool] - replace '0' in display text by 'Ø'. \li Comp_CCType=[enum] - set the composite component type (see BCSet2DCompositeComponent, e_CCType). Valid values for: \li [bool] (boolean) are true and false. \li [enum] (enumeration) are integer values in the range of the according enumeration data type. See also "tecbcenum.h". \li [string] (string) are string/text values. \li [int] (integer) are integer values. \li [byte] (byte) are integer values in the range of [0..255]. \param[in,out] pBarCode Pointer to barcode structure. \param[in] szOption Option string.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred (e.g. if any of the options was not found). ---------------------------------------------------------------------------. |
\\\\
|
Sets the barcode option string. \details The option string consists of at least one name/value pair followed by zero or more name/value pairs separated by space characters.
The format is: name=value{ name=value}.
A name must be a valid predefined option name. Values can be given in the following ways: \li As Simple Values.
Simple values are passed as they are. Spaces must be escaped by a preceding "". Valid values for boolean options are true and false.\n e.g.: NAME_BOOL=true NAME_NUMBER=123 NAME_DOUBLE=123.45 NAME_TEXT=ABC NAME_WITHSPACE=ABC abc \li As Text Values.
Text values are surrounded by single quotes. They may contain spaces which don't have to be escaped. Single quotes that occur in the text have to be escaped by a preceding "".
e.g.: NAME_TEXT='ABC' NAME_WITHSPACE='ABC abc' NAME_WITHQUOTE='Robin's Nest' \li As Complex Values.
Complex values are surrounded by curly braces "{...}". Complex value may consist of other simple, text, or complex values.
e.g.: NAME_COMPLEX={NAME_TEXT='ABC' NAME_NUMBER=123}
\details Following options are currently supported: \li DRAW_PS_Overprint=[bool] - enable/disable overprinting for PostScript output. \li DRAW_BarWidthReduction_Legacy=[enum] - enable legacy mode for bar width reduction (0 .. disable, 1 .. reduce each module, 2 .. reduce right and bottom). \li DRAW_BarWidthReduction_Values={x=[double] y=[double] unit=[enum]} - set the bar width reduction separated for horizontal (x) and vertical (y) destruction with given unit (see BCSetBarWidthReduction). \li DRAW_OptResolution=[bool] - optimize resolution (see BCSetOptResolution). \li CHECK_CDMethod=[enum] - set the check digit method (see BCSetCDMethod, e_CDMethod). \li CHECK_CodaBarIncludeStartStop=[bool] - determine whether to include start and stop character of CodaBar2 into check digit calculation. \li DATA_TranslateEsc=[bool] - enable/disable translation of escape sequences (see BCSetTranslateEsc). \li DATA_CodePage=[enum] - set the code page for the barcode data (see BCSetCodePage, e_CodePage). \li DATA_Format=[string] - set the format string (see BCSetFormatW). \li MQR_Version=[enum] - set the Micro QR-Code version (see BCSet_MQR_Version, e_MQRVersion). \li MQR_Mask=[enum] - set the Micro QR-Code mask (see BCSet_MQR_Mask, e_MQRMask). \li QrCode_Version=[enum] - set the QR-Code version (see BCSet_QR_Version, e_QRVersion). \li QrCode_Format=[enum] - set the QR-Code format (see BCSet_QR_Format, e_QRFormat). \li QrCode_FmtAppIndicator=[string] - set the QR-Code format application indicator (see BCSet_QR_FmtAppIndicator). \li QrCode_ECLevel=[enum] - set the QR-Code error correction level (see BCSet_QR_ECLevel, e_QRECLevel). \li QrCode_Mask=[enum] - set the QR-Code mask (see BCSet_QR_Mask, e_QRMask). \li QrCode_KanjiChineseCompaction=[enum] - set the QR-Code compaction mode (see BCSet_QR_KanjiChineseCompaction, e_QRMBCompaction). \li QrCode_Append={sum=[int] index=[int] parity=[byte]} - set the QR-Code structured append (see BCSet_QR_Append). \li QrCode_EncodingMode=[enum] - set the QR-Code Encoding Mode (0 .. optimal, 1 .. prefer binary/Byte, 2 .. prefer alphanumeric). \li QrCode_SizeFactorSwissCross=[double] - set the size factor of the Swiss Cross in the Swiss QR Code (default=1.0). \li DataMatrix_Size=[enum] - set the Data Matrix Size (see BCSet_DM_Size, e_DMSizes). \li DataMatrix_Rectangular=[bool] - enforce a rectangular symbol (see BCSet_DM_Rectangular). \li DataMatrix_Format=[enum] - set the Data Matrix format (see BCSet_DM_Format, e_DMFormat). \li DataMatrix_Append={sum=[int] index=[int] fileId=[int]} - set the Data Matrix structured append (see BCSet_DM_Append). \li DataMatrix_EncodingMode=[enum] - set the Data Matrix Encoding Mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer ASCII, 3 .. prefer C40). \li DataMatrix_ECC144Alternative=[bool] - enable/disable alternative ECC for symbol size 144x144. \li DataMatrix_CaptivaScanner=[bool] - enable/disable CAPTIVA scanner mode. \li HanXin_Version=[enum] - set the Han Xin version (see BCSet_HanXin_Version, e_HanXinSizes). \li HanXin_EnforceBinaryEncoding=[bool] - do enforce binary encoding (see BCSet_HanXin_EnforceBinaryEncoding). \li HanXin_ECLevel=[enum] - set the Han Xin error correction level (see BCSet_HanXin_ECLevel, e_HanXinECLevel). \li HanXin_Mask=[enum] - set the Han Xin mask (see BCSet_HanXin_Mask, e_HanXinMask). \li DotCode_Size={mode=[enum] size=[string]} - set the DotCode Size (see BCSet_DotCode_Size, e_DCSizeMode). \li DotCode_PrintDirection=[enum] - set the DotCode print direction (see BCSet_DotCode_PrintDirection, e_DCPrintDirection). \li DotCode_EnforceBinaryEncoding=[bool] (deprecated, please use DotCode_PreferredEncoding) - do enforce binary encoding (see BCSet_DotCode_EnforceBinaryEncoding). \li DotCode_PreferredEncoding=[enum] - set the DotCode preferred encoding mode (0 .. optimal, 1 .. enforce binary, 2 .. prefer Mode A, 3 .. prefer Mode B). \li DotCode_Format={format=[enum] specifier=[string]} - set the DotCode format (see BCSet_DotCode_Format, e_DCFormat). \li DotCode_Mask=[enum] - set the DotCode mask (see BCSet_DotCode_Mask, e_DCMask). \li DotCode_Append={on=<bool> total=<int> index=<int>} - set the DotCode structured append (see BCSet_DotCode_AppendActive, BCSet_DotCode_Append). \li DotCode_ExtMaskSelection=[bool] - use the extended DotCode mask selection algorithm. This flag has only effect, when no specific mask is selected. \li PDF417_MacroPDF417={fileId=[string] index=[int] last=[bool] count=[int]} - set the most common Macro PDF417 parameters. \li EanUpc_NotchHeight=[int] - set the EAN/UPC notch height (see BCSetNotchHeight). \li EanUpc_ShowQZMarker=[bool] - show quiet zone markers (see Format Setting '<'). \li EanUpc_LegacyDraw=[bool] - enable legacy draw mode (without increasing or decreasing the module width). \li Code128_LegacyMode=[bool] - enable legacy encoding mode (no extended encoding, mapping of umlauts). \li Hibc_Lic_Version=[enum] - set the HIBC LIC standard version (0 .. V2.2, 1 .. V2.4, 2 .. V2.6). \li Hibc_Pas_Version=[enum] - set the HIBC PAS standard version (0 .. V1.2, 1 .. V1.3). \li Hibc_Replace0=[bool] - replace '0' in display text by 'Ø'. \li Comp_CCType=[enum] - set the composite component type (see BCSet2DCompositeComponent, e_CCType). Valid values for: \li [bool] (boolean) are true and false. \li [enum] (enumeration) are integer values in the range of the according enumeration data type. See also "tecbcenum.h". \li [string] (string) are string/text values. \li [int] (integer) are integer values. \li [byte] (byte) are integer values in the range of [0..255]. \param[in,out] pBarCode Pointer to barcode structure. \param[in] szOption Option string.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred (e.g. if any of the options was not found). ---------------------------------------------------------------------------. |
\\\\
|
Sets the PCL output mode. By default functions, such as BCPCLToFile(), create PCL Level 5 output which includes HP-GL/2 drawing operations. HP-GL/2 is part of PCL Level 5 and thus should be supported by all PCL Level 5 compatible printers. Though, some printers and some conversion tools cannot handle HP-GL/2 instructions correctly.
With this function the HP-GL/2 output generation can be turned off.
But you need to be aware that some barcode types, such as MAXICODE, can only be drawn when with HP-GL/2 enabled.
|
Sets options concerning the currently active text (usually the human readable text). Determines whether the currently active text should be printed and where it should be located (below or above the bar code).
|
Sets the size of the quiet-zones in given units. Specifies the size of the required quiet zone in the respective units. A quiet zone is an unprinted area above, below, right, or left of a barcode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if an error occurred. |
|
Sets the background color of the quiet zone.
|
Sets the background color of the quiet zone.
|
Sets the background color of the quiet zone.
|
Sets the background color of the quiet zone.
|
Set print-ratio string. Specifies the print-ratio string for the width-relationship of the single bars and spaces. A format template used for this string is available in the property RatioHint (see BCGetRatioHint()). The ratio string looks like "1B:2B:...1S:2S" where 1B stands for the ratio-value for the most narrow bar, 1S for the ratio-value of the most-narrow space. The number of values for bars (xB) and the number of values for the spaces (xS) depends on the current symbology. It is explained in more detail in the separate document Barcode Reference.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Set print-ratio string. Specifies the print-ratio string for the width-relationship of the single bars and spaces. A format template used for this string is available in the property RatioHint (see BCGetRatioHint()). The ratio string looks like "1B:2B:...1S:2S" where 1B stands for the ratio-value for the most narrow bar, 1S for the ratio-value of the most-narrow space. The number of values for bars (xB) and the number of values for the spaces (xS) depends on the current symbology. It is explained in more detail in the separate document Barcode Reference.
| 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. ----------------------------------------------------------------------------. |
|
Sets the mode that determines the barcode size. \param[in,out] pBarCode Pointer to barcode structure. \param[in] mode Mode that determines barcode size.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------. |
|
Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned.
Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
\
|
Sets the alignment of the currently active text object (usually the human readable text). The default is center alignment.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the distance between the human readable text and the barcode. The default text distance is computed by TBarCode automatically, but can be overridden by calling BCSetTextDist().
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets barcode text (EBCDIC version). This function works the same like BCSetTextA() except that the text is specified in EBCDIC encoding and internally converted to ASCII.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
\
|
|
Sets the the rotation of the currently active text object. The text rotation is defined relatively to the bar code rotation. This means that both rotation values will be added.
|
Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned.
Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
\
|
Activates/deactivates the translation of escape-sequences. Defines if escape-sequences in the input data (e.g. "
" in "123\n456") shall be translated before encoding takes place. If the translation of escape-sequences is switched off, all characters are encoded "as-is". If it is activated, escape-sequences are translated into their corresponding characters. See Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Activates/Deactivates Aztec Code "Structured Append" mode. To set the data for structurer Aztec Code allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. This function activates or deactivates the structured append mode. To change the structured append data use function BCSet_Aztec_AppendData. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Aztec Code "Structured Append" data. This function sets the total number of symbols and the index of the actual Aztec Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Aztec Code "Structured Append" data. This function sets the total number of symbols and the index of the actual Aztec Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Determines whether Aztec Code shall be encoded in binary mode or not.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the number of error correction codewords in percent (from 0 to 99) of the symbol size.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies Aztec Code encoding format. Specifies the encoding format (standard, GS1 or industry). Default is eAztecFm_Default (standard format).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies Aztec Code encoding format. Specifies the encoding format (standard, GS1 or industry). Default is eAztecFm_Default (standard format).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Determines whether symbol shall be encoded in Aztec Rune mode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Aztec Code symbol size. Specifies the size of the symbol. The size is given in rows and columns and can be between 15 x 15 and 151 x 151. If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Adjusts the number of Codablock-F columns. Specifies the number of columns that should be used for the Codablock-F symbol. If this value is not set explicitly, TBarCode computes the number of columns automatically (default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Codablock-F code format. Specifies the encoding format for Codablock-F. Selects UCC/EAN or the default encoding format.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the row height for Codablock-F. Specifies the height of an individual row in 1/1000 mm. If this value is not set explicitly (=default), the height is calculated according to the bounding rectangle when drawing (see BCDraw()). If set, ensure that the bounding rectangle is big enough to avoid clipping.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the height of the Codablock-F row-separator. Specifies the height of the row-separator in 1/1000 mm. If this value is not set (=default), the height of the separator row is calculated automatically (according to the bounding rectangle). If set, ensure that the bounding rectangle is big enough to avoid clipping.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Adjusts the number of CodaBlock-F rows. Specifies the number of rows that should be used for the CodaBlock-F symbol. If this value is not set explicitly, TBarCode computes the number of rows automatically (default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Activates Data Matrix "Structured Append" mode. Data Matrix allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. This function sets the total number of symbols and the index of the actual Data Matrix symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. Default: Standard Structured Append is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Determines whether Data Matrix shall be encoded in binary mode or not.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies Data Matrix encoding format. Specifies the generated code format. Per default TBarCode uses the default encoding scheme.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Switches between square or rectangular Data Matrix symbols. Per default TBarCode computes square Data Matrix symbols. Change this behavior with this function.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Data Matrix symbol size. Specifies the size of the symbol. The size is given in rows and columns and can be between 10 x 10 and 144 x 144 for squares or 8 x 18 and 26 x 64 for rectangles. The Data Matrix Rectangular Extension (DMRE) specifies the matrix range from 8 x 48 to 26 x 64.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
|
|
|
|
|
|
|
|
|
Sets Han Xin Code error correction level (ECL). Sets Han Xin Code error correction level (ECL). If not set, TBarCode uses error correction level "1" per default.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Determines whether Han Xin Code shall be encoded in binary mode or not.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Han Xin Code mask pattern (0-3). Specifies the so-called "mask" that is applied to the Han Xin Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is somewhat time consuming - if the encoding process must be optimized set a predefined mask.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies the symbol version (the symbol size). Specifies the size of the symbol. Han Xin Code supports a number of different symbol sizes - these sizes are called "versions" (see e_HanXinSizes). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Micro PDF encoding mode. This option adjusts how data is encoded as MicroPDF417 and if the scanner should emulate Code-128. In most cases the Default mode is the best choice. Often the scanner hardware does not support all modes listed here - check with your reading device first. If not set explicitly, TBarCode analyzes input data. Text, numeric or binary compaction mode will be switched automatically in order to produce the smallest possible symbol.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Micro PDF Version (symbol size). The MicroPDF Version adjusts the number of data-columns and data-rows of the symbol; therefore it specifies the size of the symbol. You can specify versions between 1x11 to 4x44 (horizontal data-columns x vertical data-rows). If not set explicitly, TBarCode generates the smallest possible symbol by analyzing the input data and choosing the suitable version automatically.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Micro QR-Code mask pattern (0-7). Specifies the so-called "mask" that is applied to the Micro QR-Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is time consuming - if the encoding process must be optimized set a predefined mask.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies the symbol version (the symbol size). Specifies the size of the symbol. Micro QR-code supports a number of different symbol sizes - these sizes are called "versions" (see e_MQRVersion). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Activates MaxiCode "Structured Append" feature. MaxiCode allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information that enables the reading device to reconstruct the data of all symbols in the correct order.
these functions sets the total number of symbols and the index of the actual MaxiCode symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once. \param[in] pBarCode Pointer to barcode structure. \param[in] nSum Total number of symbols [2..8]. \param[in] nIndex Index of current symbol [1..8].
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies the operating mode for encoding data. Specifies the operating mode for encoding data. Default is Mode 4. \param[in] pBarCode Pointer to barcode structure. \param[in] nMode Used encoding mode [2..5] - Mode 2: SCM Numeric - Structured Carrier Message (Postal Code only numeric, up to 9 digits) - Mode 3: SCM Alphanumeric - Structured Carrier Message (Postal Code alphanumeric, up to 6 characters) - Mode 4: For numeric and alphanumeric character sequences (Standard Error Correction). This is the default - Mode 5: Full EEC - like Mode 4, but with Enhanced Error Correction (safer, but less usable data)
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Set MaxiCode structured carrier message (SCM). For a detailed description refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] szServiceClass Service class ["000"..."999"]. Specify the Service Class. Used in the modes 2 and 3 (SCM). \param[in] szCountryCode Country Code ["000"..."999"]. Used in the modes 2 and 3 (SCM). \param[in] szPostalCode The Postal Code - used in the modes 2 and 3 (SCM - " Structured Carrier Message"). String with altogether 9 digits (or other characters), depends on MAXI_Mode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Set MaxiCode structured carrier message (SCM). For a detailed description refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] szServiceClass Service class ["000"..."999"]. Specify the Service Class. Used in the modes 2 and 3 (SCM). \param[in] szCountryCode Country Code ["000"..."999"]. Used in the modes 2 and 3 (SCM). \param[in] szPostalCode The Postal Code - used in the modes 2 and 3 (SCM - " Structured Carrier Message"). String with altogether 9 digits (or other characters), depends on MAXI_Mode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies the undercut value of MaxiCode. This value influences the diameter of the barcode items (which are small hexagons in case of MaxiCode). Modify this value, if reading problems with the used output medium occur.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Activates the usage of the "Preamble" in MaxiCode. Specifies whether preamble functionality ("[)>..." will be encoded in the symbol header) should be activated. This is relevant in particular Open System Standards only. Refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] bUse Use preamble ("[)>..."). - true: Activate preamble - false: Preamble is not used \param[in] szDate Specifies the value for the year ["00"..."99"] (the last two digits - the century - are used). This date will be inserted automatically into the data stream on a predefined place (before the encoded data). The parameter bUse must be set to true!
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Activates the usage of the "Preamble" in MaxiCode. Specifies whether preamble functionality ("[)>..." will be encoded in the symbol header) should be activated. This is relevant in particular Open System Standards only. Refer to the additional document Barcode Reference (chapter setting SCM parameters). \param[in] pBarCode Pointer to barcode structure. \param[in] bUse Use preamble ("[)>..."). - true: Activate preamble - false: Preamble is not used \param[in] szDate Specifies the value for the year ["00"..."99"] (the last two digits - the century - are used). This date will be inserted automatically into the data stream on a predefined place (before the encoded data). The parameter bUse must be set to true!
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets Macro PDF417 Addressee (optional). Specifies addressee (alphanumeric, variable length field)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 Addressee (optional). Specifies addressee (alphanumeric, variable length field)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 Check Sum (optional). Sets 16-Bit CRC checksum (using CCITT-16 polynomial x16 + x12 + x5 + 1 over the entire data)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets the number of PDF417 columns. Sets the number of graphic columns [1...30] for PDF417 to a fixed value. If not set, the number of columns is calculated automatically by TBarCode (this is the default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets PDF417 error correction level. Set the "Error Correction Level" for PDF417 to a fixed value. Possible values are [0...8] where 0 means only error recognition (no EC) and 8 means the highest level of EC. If not set, the error correction level is chosen automatically by TBarCode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets PDF417 encoding mode. Sets the PFD417 encoding mode. If the mode is set to default the generation algorithm tries to find an optimum encoding. If binary data is encoded, binary encoding is most of the time the better choice.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 FileID. The File-ID identifies all symbols, which belong to the same data chain. For reassembling, all data blocks having the same File-ID are concatenated in the order of increasing segment index.
Macro PDF will be enabled only if the Segment-index and the File-ID are set. Default: MacroPDF is disabled.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 FileID. The File-ID identifies all symbols, which belong to the same data chain. For reassembling, all data blocks having the same File-ID are concatenated in the order of increasing segment index.
Macro PDF will be enabled only if the Segment-index and the File-ID are set. Default: MacroPDF is disabled.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 File Name (optional). Specifies file name (alphanumeric, variable length)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 File Name (optional). Specifies file name (alphanumeric, variable length)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 File Size (optional). Specifies total number of Bytes encoded (numeric, variable length field)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets PDF417 row to column ratio to a fixed value. Sets the ratio between PDF417-rows and PDF417-columns. Does only work, if neither the value of PDF417-rows (BCSet_PDF417_Rows()) nor PDF417-columns (BCSet_PDF417_Columns()) are set to a constant value. If not set, the row:column ratio is chosen automatically by TBarCode (default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets PDF417 row to column ratio to a fixed value. Sets the ratio between PDF417-rows and PDF417-columns. Does only work, if neither the value of PDF417-rows (BCSet_PDF417_Rows()) nor PDF417-columns (BCSet_PDF417_Columns()) are set to a constant value. If not set, the row:column ratio is chosen automatically by TBarCode (default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets PDF417 row height to a fixed value. Sets the height of a PDF417 row tow a fixed value [1/1000 mm]. If not set, the height is calculated automatically by TBarCode with respect to the bounding rectangle passed to BCDraw (..).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets number of PDF417 rows. Sets the number of graphic rows for PDF417 to a fixed value. If not set, the number of rows is calculated automatically by TBarCode (this is the default).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 segment count (optional). Specifies total number of bar codes in the symbol chain (numeric).
Optional field to be encoded into the Macro PDF control header block. Some applications require this field to be set (instead or in combination with the last segment marker).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro-PDF417 segment index. Index of the actual data segment in the symbol chain. Begin with 1 and increase for each additional symbol in the data chain.
Macro PDF will be enabled only if the Segment index and the File ID are set. Default: Macro PDF is disabled.
PDF417 allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry.
The so called "Macro PDF Control Block" carries additional control information that enables the reading device to reconstruct the data of all symbols in the correct order Macro PDF functionality is also available for MicroPDF417.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Marks the actual symbol as the last one within the Macro PDF417 symbol chain. Marks the current symbol as the last one within the actual symbol chain. This feature is used when generating Macro PDF417. Some applications require the segment count to be set for identifying the last bar code in the symbol chain.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 Sender (optional). Specifies sender (alphanumeric, variable length field)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 Sender (optional). Specifies sender (alphanumeric, variable length field)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets Macro PDF417 Time Stamp (optional). Specifies time stamp (elapsed time in seconds since January 1, 1970 00:00 GMT) (numeric)
Optional field to be encoded into the Macro PDF control header block. Default: unused.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Activates QR-Code "Structured Append" feature. QR-Code allows user data to be spread across several symbols. This might be done if the data is too large to fit into a single symbol or for reasons of appearance and geometry. The so called "Structured Append" mode encodes additional control information to enable the reading device to reconstruct the data of all symbols in the correct order. Default: Structured Append is disabled.
This function enables Structured Append and sets the total number of symbols and the index of the actual QR-Code symbol within the symbol chain. Depending on this index, the data will be reconstructed by the scanner during the reading process. The scanner returns the data of all symbols in the correct order at once.
All symbols within a symbol chain must be identified by a Parity. This parity is computed with BCCalcStructApp_Parity().
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets QR-Code error correction level (ECL). Sets QR-Code error correction level (ECL). If not set, TBarCode uses medium error correction level per default.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Set QR-Code format Application Indicator (used with Industry format). Is used only in connection with Industry-Format. The Application Indicator determines, to which industry format the input stream corresponds.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Set QR-Code format Application Indicator (used with Industry format). Is used only in connection with Industry-Format. The Application Indicator determines, to which industry format the input stream corresponds.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies QR-Code encoding format. Specifies the generated code format. Per default TBarCode uses the default encoding scheme without a special header.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Enables QR-Code "Compact Kanji" or "Compact Chinese" option. Enables the compaction of Kanji or Simplified Chinese characters into 13-bit values. The characters must be passed on as Unicode (wide string functions) in combination with code page set to Shift JIS or Simplified Chinese. If you use encoding mode Low Byte, the Kanji-characters must be supplied in Shift JIS X 0208 and the Chinese characters in GB2312 (Simplified Chinese) multi byte character set. Compaction of Kanji characters is done according to ISO/IEC 18004 (and AIM ITS/97-001); Compaction of Chinese characters is done according to GB/T 18284-2000.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets QR-Code mask pattern (0-7). Specifies the so-called "mask" that is applied to the QR-Code to achieve the highest possible readability. TBarCode computes the optimal mask automatically. This is very time consuming - if the encoding process must be optimized set a predefined mask.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Specifies the symbol version (the symbol size). Specifies the size of the symbol. QR-Code supports a number of different symbol sizes - these sizes are called "versions" (see e_QRVersion). If no fixed size is selected TBarCode computes the minimal required size of the symbol automatically.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Sets data segments per Row (GS1 DataBar/RSS Expanded Stacked only) to a fixed value. The value of nSegmPerRow specifies how many data words (segments) are encoded in one data row of the symbol. Values in the range from 2 to 22 are allowed. Data words are encoded in pairs, so only even numbers are valid. Wrong values are auto-corrected by TBarCode. If this value is not set (default), the number of data segments per row is 4.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Returns if structured append is allowed depending on given format. Returns: TRUE if append is allowed, otherwise FALSE.
|
Callback-function which is called instead of drawing a barcode row.
This callback function can be set with BCSetFuncDrawRow(). When set the drawing functions such as BCDraw(), BCPostscriptToFile, BCPCLToFile() etc. do not generate any output. Instead they call the active callback function.
When Windows-GDI drawing is started (with BCDraw()) then drawDC, targetDC contain the Windows device contexts (if set).
The parameters x, y, width, and height specify the extent of the barcode row. If drawDC and targetDC are not set then these variables are given in millimeters, where the origin of the coordinate system is the upper, left coordinate of the barcode. The positive X-axis points to the right and the positive Y-axis points downwards.
If drawDC or targetDC are set then the parameters x, y, width, and height use the current logical coordinate system and the logical units of these device contexts.
In your callback function you can use BCGetMetaData() to query the bars and spaces of the current row.
| ErrOk | Everything went fine, and the drawing continues. |
| =ErrOk | Something went wrong, the drawing function returns with the returned error value. |
|
Initializes TBarCode Library (UNIX and Windows CE only). Must be called after loading TBarCode library and before calling any other functions from TBarCode.
| 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:07 2019 for TBarCode Library 11 with doxygen 1.1.5 |