BarcodeDataMatrixReaderDoScan Method

See Also     Examples     Applies To

Starts a 2D DataMatrix 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.BarcodeDataMatrixReaderDoScan (ScanMode)

The BarcodeDataMatrixReaderDoScan 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 BarcodeDataMatrixReaderScanMode enumeration: 0 for Best Speed. 1 for Best Quality.

Returns

Long. GdPictureStatus

Remarks

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

Category

2D DataMatrix Barcode Recognition

Visual Basic Sample

Detect and read barcode from bitmap


Object.CreateImageFromFile("c:\test.tif")
Object.BarcodeDataMatrixReaderDoScan()
For i = 1 To Imaging1.BarcodeDataMatrixReaderGetBarcodeCount
   MsgBox "Value: " + Object.BarcodeDataMatrixReaderGetBarcodeValue(i)
   MsgBox "Type: " + str(Object.BarcodeDataMatrixReaderGetBarcodeType(i))
   MsgBox "Angle: " + str(Object.BarcodeDataMatrixReaderGetBarcodeSkewAngle(i))
Next i
Object.BarcodeDataMatrixReaderClear()
Object.CloseNativeImage()






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.