WIA_BARCODE_INFO structure

The WIA_BARCODE_INFO structure stores information for one decoded barcode.

Syntax


typedef struct _WIA_BARCODE_INFO {
  DWORD Size;
  DWORD Type;
  DWORD Page;
  DWORD Confidence;
  DWORD Xoffset;
  DWORD Yoffset;
  DWORD Rotation;
  DWORD Length;
  WCHAR Text[1];
} WIA_BARCODE_INFO;

Members

Size

The total size of this structure, in bytes.

Type

The barcode type. One of the WIA_IPS_SUPPORTED_BARCODE_TYPES values.

Page

The page number where the barcode was detected. A zero-based index referring to the current scan job.

Confidence

The confidence level. A value in the range from 0 (no confidence) to 10 (maximum confidence).

Xoffset

The horizontal coordinate, in pixels (relative to the scanned image), where the top-left origin of the barcode was detected. This value can be 0 if it is unknown.

Yoffset

The vertical coordinate, in pixels (relative to the scanned image), where the top-left origin of the barcode was detected. This value can be 0 if it is unknown.

Rotation

The rotation of the barcode, in degrees. A value in the rage from 0 to 359. This value can be 0 if it is unknown.

Length

The number of text characters in the character string containing the decoded barcode text, excluding the length of the NULL terminator.

Text

Placeholder for the character string containing the decoded barcode text (double byte characters, NULL terminated).

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.