GMImage.SetScene
----------------

Sets the image scene number

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

MBS( "GMImage.SetScene"; ImageRef; scene ) 

**MBS**( **"GMImage.SetScene";** /\* Sets the image scene number \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$scene**) /\* The scene number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the image scene number  
### See also

- [GMImage.GetScene](GMImageGetScene.md)
- [GMImage.GetSize](GMImageGetSize.md)
- [GMImage.Segment](GMImageSegment.md)
- [GMImage.SetFont](GMImageSetFont.md)
- [GMImage.SetMatte](GMImageSetMatte.md)
- [GMImage.SetPage](GMImageSetPage.md)
- [GMImage.SetSize](GMImageSetSize.md)
- [GMImage.SetType](GMImageSetType.md)
- [GMImage.SetView](GMImageSetView.md)

This function checks for a license.

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

  
[GMImage.SetResolutionUnits](GMImageSetResolutionUnits.md) - [GMImage.SetSize](GMImageSetSize.md)

[HTML Version](GMImageSetScene.shtml)