GMImage.SetSubRange
-------------------

Sets the Number of images relative to the base image

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

MBS( "GMImage.SetSubRange"; ImageRef; Value ) 

**MBS**( **"GMImage.SetSubRange";** /\* Sets the Number of images relative to the base image \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Value**) /\* The new value.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Value | The new value. | 0 |

### Result

Returns "OK" on success.

### Description

Sets the Number of images relative to the base image  
### See also

- [GMImage.GetSubImage](GMImageGetSubImage.md)
- [GMImage.GetSubRange](GMImageGetSubRange.md)
- [GMImage.SetSubImage](GMImageSetSubImage.md)

This function checks for a license.

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

  
[GMImage.SetSubImage](GMImageSetSubImage.md) - [GMImage.SetTextEncoding](GMImageSetTextEncoding.md)

[HTML Version](GMImageSetSubRange.shtml)