Polarity Property

NI Vision for Visual Basic

Polarity Property

Syntax

CWIMAQDataMatrixDescriptionOptions.Polarity

Data Type

CWIMAQDataMatrixPolarities

You can use the following constants with this data type:

  • cwimaqDataMatrixPolarityAutoDetect—The method should determine the polarity of the Data Matrix barcode.
  • cwimaqDataMatrixPolarityBlackOnWhite—The method should search for a Data Matrix barcode with dark data on a bright background.
  • cwimaqDataMatrixPolarityWhiteOnBlack—The method should search for a Data Matrix barcode with bright data on a dark background.

Purpose

Specifies the data-to-background contrast for the Data Matrix barcode.

Remarks

The default is cwimaqDataMatrixPolarityAutoDetect.