GMImage.Wave
------------

Map image pixels to a sine wave:

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

MBS( "GMImage.Wave"; ImageRef { ; amplitude; wavelength } ) 

**MBS**( **"GMImage.Wave";** /\* Map image pixels to a sine wave: \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$amplitude**; /\* Optional; The amplitudee.g. 25.0 \*/   
**$wavelength**) /\* Optional; The wave lengthe.g. 150.0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 |  |
| amplitude | The amplitude | 25.0 | Optional |
| wavelength | The wave length | 150.0 | Optional |

### Result

Returns "OK" on success.

### Description

Map image pixels to a sine wave:  
### See also

- [GMImage.Erase](GMImageErase.md)
- [GMImage.Frame](GMImageFrame.md)
- [GMImage.Free](GMImageFree.md)
- [GMImage.Hash](GMImageHash.md)
- [GMImage.Level](GMImageLevel.md)
- [GMImage.Map](GMImageMap.md)
- [GMImage.Raise](GMImageRaise.md)
- [GMImage.Scale](GMImageScale.md)
- [GMImage.Shade](GMImageShade.md)
- [GMImage.Shave](GMImageShave.md)

This function checks for a license.

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

  
[GMImage.UnsharpmaskChannel](GMImageUnsharpmaskChannel.md) - [GMImage.WriteImages](GMImageWriteImages.md)

[HTML Version](GMImageWave.shtml)