Overview When UseOverSampling is TRUE the barcode reader samples 3 lines at a time (skipping 2 lines between each sample) and takes the average pixel value. This is useful for images containing both black and white speckles. Type: BOOL Default value: FALSE
Syntax .net/com/java/ocx: Object.ExportXMLSettings(filePath) dll: mtExportXMLSettings(hBarcode, filePath) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). filePath Path to the xml file to be created. Return Value 1/True on success and 0/False on failure. Remarks ExportXMLSettings saves the current property values to an XML format file. The settings could be modified and loaded again usingLoadXMLSettings. The
Syntax .net/java/ocx: Object.GetBarString(n) com: Object.BarString(n) dll: mtGetBarString (hBarcode, n) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). n 1-based index to barcode to be queried. Return Value GetBarString retrieves a barcode string that has been detected by the ScanBarCode method. In .net applications, useSystem.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String. Remarks · Check digit characters are
Syntax .net/java/ocx: Object.GetBarStringDirection(n) com: Object.BarStringDirection(n) dll: mtGetBarStringDirection(hBarcode, n) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). n 1-based index to barcode to be queried. Return Value 1 = Left to Right 2 = Top to Bottom 4 = Right to Left 8 = Bottom to Top 16 = Top Left to Bottom Right 32 =
Syntax .net: System.Drawing.Rectangle Object.GetBarStringRect(n) Object.GetBarStringPage(n) com: Object.BarStringPage(n) Object.BarStringTopLeftX(n) Object.BarStringTopLeftY(n) Object.BarStringBottomRightX(n) Object.BarStringBottomRightY(n) ocx: pageNo = Object.GetBarStringPos(n, &TopLeftX &TopLeftY, &BottomRightX, &BottomRightY) dll: pageNo = mtGetBarStringPos(hBarcode, n, &TopLeftX, &TopLeftY, &BottomRightX, &BottomRightY) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). n 1-based index to barcode to be queried. TopLeftX variable to receive x coordinate of the top left hand
Syntax .net/java/ocx: Object.GetBarStringType(n) com: Object.BarStringType(n) dll: mtGetBarStringType(hBarcode, n) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). n 1-based index to barcode to be queried. Return Value GetBarStringType returns a string representing the type of barcode. In .net applications, use System.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String. Remarks Call GetBarStringType after calling
Syntax Loading from xml file: .net/java: Object.LoadXMLSettings(file) com/ocx: Object.LoadXMLSettings(file, silent) dll: mtLoadXMLSettings(hbarcode, file, silent) Loading from string: .net/java: Object.LoadXMLSettings(string) com/ocx: Object.LoadXMLSettings(string, silent) dll: mtLoadXMLSettings(hbarcode, string, silent) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). file Path to the xml file to be loaded. string String holding the xml property values. silent Integer or boolean value. 1/True will suppress error messages.
Syntax .net: Integer Object.ProcessXML (inputFile, outputFile) com: Object. ProcessXML (inputFile, outputFile, silent) ocx: BOOL Object. ProcessXML (inputFile, outputFile, silent) dll: BOOL mtProcessXML (hbarcode, inputFile, outputFile, silent) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). inputFile Path to the xml file to be processed. ouputFile Path to the xml or csv file to be created. silent Integer or boolean value. 1/True will suppress error messages. Return
Overview .net/ocx: Object.SaveResults (file) com: Object. SaveXMLResults (file) dll: mtSaveResults (hbarcode, file) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). file Path to the xml or csv file to be created. Return Value 1/True on success and 0/False on failure. Remarks SaveResults saves the current set of results to an XML or CSV file. The outputFile format is determined
Syntax .net/com/java/ocx: Object.ScanBarCode(file) dll: mtScanBarCode(hBarcode, file) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). file Path to the file containing the image to be scanned for barcodes. Return Value -1 Error opening file -2 BMP file is multi-plane -3 Invalid number of bits per sample -4 Memory allocation error -5 Invalid tif photometric property -6,-7,-8 Invalid license key. Remarks Scan