GMImage.SetPage
---------------

Sets the Preferred size and location of an image canvas.

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

MBS( "GMImage.SetPage"; ImageRef; Page ) 

**MBS**( **"GMImage.SetPage";** /\* Sets the Preferred size and location of an image canvas. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Page**) /\* The page geometry. \*/ 

### Parameters

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

### Result

Returns a geometry string.

### Description

Sets the Preferred size and location of an image canvas.  
### See also

- [GMImage.GetPage](GMImageGetPage.md)
- [GMImage.SetMagick](GMImageSetMagick.md)
- [GMImage.SetMatte](GMImageSetMatte.md)
- [GMImage.SetQuiet](GMImageSetQuiet.md)
- [GMImage.SetScene](GMImageSetScene.md)
- [GMImage.SetSize](GMImageSetSize.md)
- [GMImage.SetType](GMImageSetType.md)
- [GMImage.SetView](GMImageSetView.md)
- [GMImage.SetXMP](GMImageSetXMP.md)
- [GMImage.Stegano](GMImageStegano.md)

This function checks for a license.

Created 18th August 2014 , last changed 17th July 2022

  
[GMImage.SetOrientation](GMImageSetOrientation.md) - [GMImage.SetPixelColor](GMImageSetPixelColor.md)

[HTML Version](GMImageSetPage.shtml)