GMImage.Implode
---------------

Implode image (special effect).

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

MBS( "GMImage.Implode"; ImageRef; Factor ) 

**MBS**( **"GMImage.Implode";** /\* Implode image (special effect). \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Factor**) /\* The implode factor.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Factor | The implode factor. | 0 |

### Result

Returns "OK" on success.

### Description

Implode image (special effect).  
### Examples

Applies the implode effect:

 Let ( \[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$Result = MBS ("GMImage.Implode";$Image ; 5);   
$Result = MBS ("[GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)"; $Image );   
$Error = MBS ("[GMImage.Release](GMImageRelease.md)";$Image )  
\];   
$Result )  
### See also

- [GMImage.New](GMImageNew.md)
- [GMImage.NewFromContainer](GMImageNewFromContainer.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.Sample](GMImageSample.md)
- [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)

This function checks for a license.

Created 18th August 2014 , last changed 21st December 2018

  
[GMImage.ImageCount](GMImageImageCount.md) - [GMImage.InvertChannel](GMImageInvertChannel.md)

[HTML Version](GMImageImplode.shtml)