GMImage.SetAnimationDelay
-------------------------

Sets the animation delay.

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

MBS( "GMImage.SetAnimationDelay"; ImageRef; Delay ) 

**MBS**( **"GMImage.SetAnimationDelay";** /\* Sets the animation delay. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Delay**) /\* Time in 1/100ths of a seconde.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Delay | Time in 1/100ths of a second | 10 |

### Result

Returns "OK" on success.

### Description

Sets the animation delay.  
Time in 1/100ths of a second which must expire before displaying the next image in an animated sequence.  
  
Time in 1/100ths of a second (0 to 65535) which must expire before displaying the next image in an animated sequence. This option is useful for regulating the animation of a sequence of GIF images within Netscape.  
### See also

- [GMImage.GetAnimationDelay](GMImageGetAnimationDelay.md)

### Example Databases

- [GraphicsMagick/Create GIF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Create%20GIF.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 11st September 2017

  
[GMImage.SetAdjoin](GMImageSetAdjoin.md) - [GMImage.SetAnimationIterations](GMImageSetAnimationIterations.md)

[HTML Version](GMImageSetAnimationDelay.shtml)