AztecGetPatternData Function

Navigation:  Reference Guide >

AztecGetPatternData Function

Previous pageReturn to chapter overviewNext page

Gets the Aztec barcode pattern matrix data.

BOOL AztecGetPatternData(LPVOID lpBuffer,

                                          DWORD *Size,

                                          WORD *Rows,

                                          WORD *Columns);

 

Parameters

 

lpBuffer

Pointer to a buffer that receives the character stream ('1's and '0's) storing the Aztec barcode pattern matrix data row by row from the top left matrix corner, '1' indicates the black module and '0' indicates the white module.

If the function fails and the variable pointed to by Size returns the required buffer size, in characters.

Size

[in/out] On input, specifies the size, in characters, of the lpBuffer. On output, receives the size, in characters, of the Aztec barcode pattern matrix ('1's and '0's).

Rows

A pointer to the variable that receives the number of the rows for the pattern matrix.

Columns

A pointer to the variable that receives the number of the columns for the pattern matrix..

 

Return Value

If the function succeeds, the return value is a nonzero value, otherwise the return value is zero.

 

 

Remarks

You can use this function to obtain the Aztec barcode pattern matrix data and render the Aztec barcode onto any device such as the printer, call AztecSetMessage() and AztecConfigure() functions before calling this function, other functions don't affect the output of Aztec barcode pattern matrix.

Based on the Orientation parameter value, rotate the pattern matrix accordingly before you render the Aztec barcode onto a device.