Contrast Property

NI Vision for Visual Basic

Contrast Property

Syntax

CWIMAQDataMatrixOptions.Contrast

Data Type

CWIMAQBarcode2DContrasts

You can use the following constants with this data type:

  • cwimaqBarcode2DContrastAll—The method searches for barcodes of each contrast type. Using this option reduces the performance of the method, limiting it to using no region or a rectangle region.
  • cwimaqBarcode2DContrastBlackOnWhite—The method searches for 2D barcodes containing black data on a white background.
  • cwimaqBarcode2DContrastWhiteOnBlack—The method searches for 2D barcodes containing white data on a black background.

Purpose

Specifies the contrast of the barcodes that the method searches for. The default is cwimaqBarcode2DContrastAll.