Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    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

MBS( "GMImage.Rotate"; ImageRef; degrees )

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.Destroy";$Image)
];
$Result)

See also

Example Databases


GMImage.Rollxy   -   GMImage.Rotating

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins