GMImage.Scaling
---------------

Apply scaling in x and y direction while drawing objects.

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

MBS( "GMImage.Scaling"; ImageRef; X; Y ) 

**MBS**( **"GMImage.Scaling";** /\* Apply scaling in x and y direction while drawing objects. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$X**; /\* The x scaling factor.e.g. 1 \*/   
**$Y**) /\* The y scaling factor.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| X | The x scaling factor. | 1 |
| Y | The y scaling factor. | 1 |

### Result

Returns OK or error.

### Description

Apply scaling in x and y direction while drawing objects.  
### See also

- [GMImage.Rotating](GMImageRotating.md)
- [GMImage.Scale](GMImageScale.md)

This function checks for a license.

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

  
[GMImage.Scale](GMImageScale.md) - [GMImage.Segment](GMImageSegment.md)

[HTML Version](GMImageScaling.shtml)