Topics   All functions   Mac OS X   Windows   Crossplatform   Server   Components   Guides   Statistic  
New in version: 3.0   3.1   3.2   3.3   3.4   3.5   4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2  


Component: GraphicsMagick
Version: 2.0
Mac OS X: Yes
Windows: Yes
Server: Yes

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


Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1
degrees The angle in degrees. 90


Returns "OK" on success.


Rotate image by specified number of degrees.
Positive angles rotate the image in a clockwise direction while negative angles rotate counter-clockwise.


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)

See also

GMImage.Rollxy   -   GMImage.Rotating

Feedback: Report problem or ask question.

MBS REAL studio Plugins - Bilder aus Nickenich