There are two rotating methods that you can use to rotate a given image by 90 degrees: (i) rotateRight for clockwise rotation and (ii) rotateLeft for counterclockwise rotation. $image.rotateRight(image)Return an image icon for an element.
| Name | Type | Description |
---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. | Return | - | com.nomagic.magicreport.Image | The rotated image object for the element icon. |
$image.rotateLeft(image)Return an image icon for an element.
| Name | Type | Description |
---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. | Return | - | com.nomagic.magicreport.Image | The rotated image object for the element icon. |
Use $image.rotateRight($diagram.image), for example, to rotate the image 90 degrees clockwise. The following photos show the result. ![MagicDraw 2021x Refresh2 > Rotating images > 2.1.rotateRight.png](/download/attachments/82748584/2.1.rotateRight.png?version=1&modificationDate=1446605284081&api=v2) Results of using the image rotate right function.
Use $image.rotateLeft($diagram.image), for example, to rotate the image 90 degrees counterclockwise. The following photos show the result. ![MagicDraw 2021x Refresh2 > Rotating images > 2.2.rotateLeft.png](/download/attachments/82748584/2.2.rotateLeft.png?version=1&modificationDate=1446605284237&api=v2) Results of using the image rotate left function.
RTF Image rotation, with the scaling quality set to 'highest,' is not supported in any RTF document when opened with OpenOffice.org. |
|