GMImage.SetGifDisposeMethod
---------------------------

Sets the GIF disposal method.

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

MBS( "GMImage.SetGifDisposeMethod"; ImageRef; disposeMethod ) 

**MBS**( **"GMImage.SetGifDisposeMethod";** /\* Sets the GIF disposal method. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$disposeMethod**) /\* The dispose Method number. \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the GIF disposal method.  
  
| Disposal | Description |
|---|---|
| 0 | No disposal specified. |
| 1 | Do not dispose between frames. |
| 2 | Overwrite frame with background color from header. |
| 3 | Overwrite with previous frame. |

### See also

- [GMImage.GetGifDisposeMethod](GMImageGetGifDisposeMethod.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 23th November 2016

  
[GMImage.SetFontWeight](GMImageSetFontWeight.md) - [GMImage.SetICCColorProfile](GMImageSetICCColorProfile.md)

[HTML Version](GMImageSetGifDisposeMethod.shtml)