GMImage.Gamma
-------------

Gamma correct image.

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

MBS( "GMImage.Gamma"; ImageRef; gammaRed; gammaGreen; gammaBlue ) 

**MBS**( **"GMImage.Gamma";** /\* Gamma correct image. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$gammaRed**; /\* The gamma value for the red channel. (or if only one value is given the gamma value for all channels)e.g. 0.5 \*/   
**$gammaGreen**; /\* The gamma value for the green channel.e.g. 0.5 \*/   
**$gammaBlue**) /\* The gamma value for the blue channel.e.g. 0.5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| gammaRed | The gamma value for the red channel. (or if only one value is given the gamma value for all channels) | 0.5 |
| gammaGreen | The gamma value for the green channel. | 0.5 |
| gammaBlue | The gamma value for the blue channel. | 0.5 |

### Result

Returns "OK" on success.

### Description

Gamma correct image.  
You can also pass only one gamma value for all three channels.  
### See also

- [GMImage.GetGamma](GMImageGetGamma.md)

This function checks for a license.

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

  
[GMImage.FreeAll](GMImageFreeAll.md) - [GMImage.GaussianBlur](GMImageGaussianBlur.md)

[HTML Version](GMImageGamma.shtml)