Error getting tags :
error 404Error getting tags :
error 404 revRotatePoly | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revRotatePoly
Basics
Expander triangle
Type
Command
Syntax
revRotatePoly graphicReference,angleInDegrees
Introduced
1.1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Rotates a graphic by a specified angle.
Examples

revRotatePoly the long ID of graphic "My Curve",45 -- rotates 45 degrees
revRotatePoly "graphic" && it, 10 * theStartAngle
revRotatePoly the name of graphic 3 of stack "Draw", field "Rotate by"

Additional Comments
Expander triangle

Use the revRotatePoly command to rotate a line, curve, or irregular polygon graphic.

Parameters:

The graphicReference is any expression that evaluates to a reference to a graphic whose style property is set to "line", "curve", or "polygon".

Important! The revRotatePolycommand does not accept direct graphic references. For example, the following statement causes an error message:

revRotatePoly graphic "My Graphic",45 -- CAN'T USE THIS FORM

Instead, use a form that evaluates to a graphic reference, like this:

revRotatePoly the name of graphic "My Graphic",90 -- use this form

revRotatePoly ("field" && quote & "My Field" & quote),22 -- or this

The angleInDegrees is a number, or an expression that evaluates to a number.

Comments:

If the angleInDegrees is positive, the image rotates counterclockwise. If the angleInDegrees is negative, the image rotates clockwise.

Note: When included in a standalone application, the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revRotatePolycommand is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the revRotatePolycommand can be used in any handler.

User Comments
Expander triangle