Rotation

<< Click to Display Table of Contents >>

Navigation:  Layout Functions >

Rotation

Previous pageReturn to chapter overviewNext page

[Not supported by the Community Edition]

Sets / returns 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.

property integer VPE.Rotation

read / write; runtime only
also supported by TVPEObject (works only for TVPEObjects which reside in a template!)

Possible Values:

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:

Doc.Rotation = 900

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