ReadDataMatrixBarcode Method

NI Vision for Visual Basic

ReadDataMatrixBarcode Method

Syntax

CWIMAQVision.ReadDataMatrixBarcode SourceImage, Options, Barcode2DReport [, Regions]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use CWIMAQVision.ReadDataMatrixBarcode2 instead. Reads Data Matrix barcodes from an image.

Remarks

Use this method with U8 images.

Parameters

SourceImage As CWIMAQImage

The image containing the Data Matrix barcodes to read.

Options As CWIMAQDataMatrixOptions

A CWIMAQDataMatrixOptions object that specifies the parameters the method uses to locate and decode the Data Matrix barcodes.

Barcode2DReport As CWIMAQBarcode2DReport

On return, a CWIMAQBarcode2DReport containing information about the Data Matrix barcodes, including a string containing the decoded barcode data.

Regions As Variant

[Optional] An CWIMAQRegions object that specifies the location of the Data Matrix barcodes in the image. The method uses the first CWIMAQRegion object in the collection, which must be an annulus, free region, oval, polygon, rectangle, or rotated rectangle region.

See Also

CWIMAQBarcode2DReport

CWIMAQRegions