Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.TransformRotation
Rotation to use when annotating with text or drawing.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 2.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| angle | The angle. | 90 |
Result
Returns "OK" on success.
Description
Rotation to use when annotating with text or drawing.If you need to rotate the image, please use GMImage.Rotate function.
See GMImage.TransformReset to reset current transform.
Examples
Draw rectangle 45° rotated at specific coordinate:
# move origin
Set Variable [ $r ; Value: MBS( "GMImage.TransformOrigin"; $img; 50 + 125; 50 + 75 ) ]
# draw rectangle centered there
Set Variable [ $r ; Value: MBS("GMImage.DrawRectangle"; $img; -125; -75; 125; 75) // 250 x 150 ]
# rotate 45°
Set Variable [ $r ; Value: MBS( "GMImage.TransformRotation"; $img; 45 ) ]
# draw rectangle centered there
Set Variable [ $r ; Value: MBS("GMImage.DrawRectangle"; $img; -125; -75; 125; 75) // 250 x 150 ]
See also
- GMImage.DrawRectangle
- GMImage.Rotate
- GMImage.Transform
- GMImage.TransformOrigin
- GMImage.TransformReset
Created 18th August 2014, last changed 16th December 2020
GMImage.TransformReset - GMImage.TransformScale
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins