GMImage.Magnify
---------------

Magnify image by integral size.

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

MBS( "GMImage.Magnify"; ImageRef ) 

**MBS**( **"GMImage.Magnify";** /\* Magnify image by integral size. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Magnify image by integral size.  
Increases image size to 200%.  
### Examples

Magnificates an image:

 # load images...   
Set Variable \[ $Image ; Value: MBS ( "[GMImage.NewFromFile](GMImageNewFromFile.md)"; "/Users/cs/Pictures/IMG\_3625.jpg") \]   
\# put first on second   
Set Variable \[ $r ; Value: MBS ( "GMImage.Magnify"; $Image ) \]   
\# magnify image   
Set Variable \[ $r ; Value: MBS ( "[GMImage.WriteToFile](GMImageWriteToFile.md)"; $Image ; "/Users/cs/Pictures/output.jpg") \]   
\# free memory   
Set Variable \[ $r ; Value: MBS ( "[GMImage.Release](GMImageRelease.md)"; $Image ) \]  
### See also

- [GMImage.Minify](GMImageMinify.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.NewFromFile](GMImageNewFromFile.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.WriteToFile](GMImageWriteToFile.md)

This function checks for a license.

Created 18th August 2014 , last changed 11st December 2019

  
[GMImage.MagickVersion](GMImageMagickVersion.md) - [GMImage.Map](GMImageMap.md)

[HTML Version](GMImageMagnify.shtml)