Rotate Command
Smartsite 7 - ...
The Rotate command rotates an image.
Parameters
Shorthand | Description | Default |
---|---|---|
r | A value between 0 and 359 to determine the degrees of rotation set for the image. | N/A |
rbc | After rotation an image displays certain "exposed regions". These regions can be given a color. Any hex or well-known color format is valid. | Transparent |
Command definition
XML | Copy Code |
---|---|
<add id="rotate" type="Smartsite.ImageProcessor.Commands.RotateCommand, Smartsite.ImageProcessor" enabled="true"> <parameters> <!-- rotation angle as double --> <add name="degrees" shortcut="r" /> <!-- default: transparent --> <add name="backcolor" shortcut="rbc" /> </parameters> </add> |
Examples
Original image
Rotate 90 degrees (?hid=img;r=90;)
Rotate 30 degrees (?hid=img;r=30;)