GMImage.Rotating
----------------

Set rotation to use when drawing.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.Rotating"; ImageRef; angle ) 

**MBS**( **"GMImage.Rotating";** /\* Set rotation to use when drawing. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$angle**) /\* The rotation angle.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| angle | The rotation angle. | 10 |

### Result

Returns OK or error.

### Description

Set rotation to use when drawing.  
### See also

- [GMImage.Rotate](GMImageRotate.md)
- [GMImage.Scaling](GMImageScaling.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[GMImage.Rotate](GMImageRotate.md) - [GMImage.Rows](GMImageRows.md)

[HTML Version](GMImageRotating.shtml)