VpeSetRotation

<< Click to Display Table of Contents >>

Navigation:  Layout Functions >

VpeSetRotation

Previous pageReturn to chapter overviewNext page

[Not supported by the Community Edition]

Sets the new rotation angle for text, images and barcodes. Rotation is done clockwise. Angles are given in 1/10 degrees.

The x, y position will always be the same. It is not modified by rotation. Internally VPE computes the width and height of the object, and then rotates it. So rotation is easier to use, if you work with width and height (negative signs for x2 and y2) instead of absolute values.

For a detailed explanation see "Rotation of Text, Images and Barcodes" in the Programmer's Manual.

void VpeSetRotation(

VpeHandle hDoc

int angle

)

VpeHandle hDoc

Document Handle or
VPE Object Handle (works only for TVPEObjects which reside in a template!)

int angle

the rotation angle in 0.1 degrees, clockwise

Default:

0 degrees

Remarks:

Rotation of images is only possible, if you are using the Enhanced Edition or above. Metafiles can not be rotated.

Example:

VpeSetRotation(hdoc, 900)

The next inserted objects will be rotated by 90 degrees clockwise.