VpeSetBar2DAlignment

<< Click to Display Table of Contents >>

Navigation:  Barcode Functions (2D) >

VpeSetBar2DAlignment

Previous pageReturn to chapter overviewNext page

[Professional Edition and above only]

Sets the horizontal and vertical alignment of the 2D-barcodes within the given rectangle.

void VpeSetBar2DAlignment(

VpeHandle hDoc,

int alignment

)

VpeHandle hDoc

Document Handle or VPE Object Handle

int alignment

the alignment; possible values are:

Constant Name

Value

Comment

VBAR2D_ALIGN_CENTER

0

horizontally and vertically centered

VBAR2D_ALIGN_CENTER_H

0

horizontally centered

VBAR2D_ALIGN_CENTER_V

0

vertically centered

VBAR2D_ALIGN_LEFT

1

 

VBAR2D_ALIGN_RIGHT

2

 

VBAR2D_ALIGN_TOP

4

 

VBAR2D_ALIGN_BOTTOM

8

 

Default:

VBAR2D_ALIGN_CENTER

Remarks:

You combine values for horizontal and vertical alignment by adding two flags.

Example:

VpeSetBar2DAlignment(hDoc, VBAR2D_ALIGN_LEFT + VBAR2D_ALIGN_TOP)

Will align the barcode to the top-left corner.

 

See also:

"Barcodes (2D)" in the Programmer's Manual