GMImage.Shade
-------------

Shade image using distant light source.

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

MBS( "GMImage.Shade"; ImageRef; azimuth; elevation; colorShading ) 

**MBS**( **"GMImage.Shade";** /\* Shade image using distant light source. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$azimuth**; /\* The azimuth.e.g. 30 \*/   
**$elevation**; /\* The elevatione.g. 30 \*/   
**$colorShading**) /\* A boolean value.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| azimuth | The azimuth. | 30 |
| elevation | The elevation | 30 |
| colorShading | A boolean value. | 0 |

### Result

Returns "OK" on success.

### Description

Shade image using distant light source.  
### See also

- [GMImage.Erase](GMImageErase.md)
- [GMImage.Frame](GMImageFrame.md)
- [GMImage.Read](GMImageRead.md)
- [GMImage.Scale](GMImageScale.md)
- [GMImage.Sharpen](GMImageSharpen.md)
- [GMImage.Shave](GMImageShave.md)
- [GMImage.Shear](GMImageShear.md)
- [GMImage.Wave](GMImageWave.md)

This function checks for a license.

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

  
[GMImage.SetXMP](GMImageSetXMP.md) - [GMImage.Sharpen](GMImageSharpen.md)

[HTML Version](GMImageShade.shtml)