Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
7.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
Statistic
GMImage.Rotate
Rotate image by specified number of degrees.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
GraphicsMagick | 2.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
Parameter | Description | Example value |
---|---|---|
ImageRef | The image reference number. | 1 |
degrees | The angle in degrees. | 90 |
Result
Returns "OK" on success.
Description
Rotate image by specified number of degrees.Positive angles rotate the image in a clockwise direction while negative angles rotate counter-clockwise.
Examples
Rotates image by 90 degree to right
Let (
[
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$RotateResult = MBS("GMImage.Rotate"; $Image; 90);
$Result = MBS("GMImage.WriteToPNGContainer"; $Image);
$DestroyResult = MBS("GMImage.Release";$Image)
];
$Result)
Custom function to rotate image:
/*
MBS_Image_Rotate (Picture; rotation)
Picture: Container 'MyTable::MyField"
rotation: Grad ° - numeric Value, positiv OR negative
Benjamin Fehr, EfficientBizz GmbH
http://www.efficientbizz.com
*/
Let (
[
$Image = MBS("GMImage.NewFromContainer"; Picture);
$RotateResult = MBS("GMImage.Rotate"; $Image; rotation);
$Result = MBS("GMImage.WriteToPNGContainer"; $Image);
$DestroyResult = MBS("GMImage.Release";$Image)
];
$Result)
See also
- GMImage.GetPage
- GMImage.Modulate
- GMImage.Negate
- GMImage.New
- GMImage.NewFromContainer
- GMImage.Release
- GMImage.Repage
- GMImage.Resize
- GMImage.Rollxy
- GMImage.Rotating
- GMImage.SetMatte
- GMImage.SetPage
- GMImage.TransformRotation
- GMImage.WriteToPNGContainer
Example Databases
Blog Entries
Created 18th August 2014, last changed 21st December 2018
GMImage.Rollxy - GMImage.Rotating
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins