Barcode1DReaderDoScan Method

See Also     Examples     Applies To

Starts a 1D barcode recognition process on a GdPicture image or on an area of a GdPicture image defined by SetROI() function.

This function accepts a parameter to specify the scanning mode (quality vs speed).

Syntax

object.Barcode1DReaderDoScan (ScanMode)

The Barcode1DReaderDoScan syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
ScanMode Required. Long. A member of the Barcode1DReaderScanMode enumeration: 0 for Best Speed. 1 for Best Quality.

Returns

Long. GdPictureStatus

Remarks

This function requires the optional GdPicture 1D Barcode Recognition Plugin. This plugin must be unlocked with the SetLicenseNumber1DBarcodeRecognition() function.

Category

1D Barcode Recognition

Visual Basic Sample

Detect and read barcode from bitmap


Object.CreateImageFromFile("c:\test.tif")
Object.Barcode1DReaderDoScan()
For i = 1 To Imaging1.Barcode1DReaderGetBarcodeCount
   MsgBox "Value: " + Object.Barcode1DReaderGetBarcodeValue(i)
   MsgBox "Type: " + str(Object.Barcode1DReaderGetBarcodeType(i))
   MsgBox "Angle: " + str(Object.Barcode1DReaderGetBarcodeSkewAngle(i))
Next i
Object.Barcode1DReaderClear()
Object.CloseNativeImage()






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.