GMImage.Spread
--------------

Spread pixels randomly within image by specified ammount.

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

MBS( "GMImage.Spread"; ImageRef; amount ) 

**MBS**( **"GMImage.Spread";** /\* Spread pixels randomly within image by specified ammount. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$amount**) /\* The amount.e.g. 3 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Spread pixels randomly within image by specified ammount.  
### See also

- [GMImage.Format](GMImageFormat.md)
- [GMImage.Read](GMImageRead.md)
- [GMImage.Shear](GMImageShear.md)
- [GMImage.Stereo](GMImageStereo.md)

This function checks for a license.

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

  
[GMImage.Solarize](GMImageSolarize.md) - [GMImage.Statistics](GMImageStatistics.md)

[HTML Version](GMImageSpread.shtml)