GMImage.Equalize
----------------

Equalize image (histogram equalization)

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

MBS( "GMImage.Equalize"; ImageRef ) 

**MBS**( **"GMImage.Equalize";** /\* Equalize image (histogram equalization) \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Equalize image (histogram equalization)  
### Examples

Apply equalize effect to an image:

 Let ( \[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$Result = MBS ("GMImage.Equalize";$Image );   
$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.Normalize](GMImageNormalize.md)
- [GMImage.Quantize](GMImageQuantize.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.Solarize](GMImageSolarize.md)
- [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)

### Example Databases

- [GraphicsMagick/GraphicsMagick Sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Sample.shtml#18ScriptAnchor_)

This function checks for a license.

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

  
[GMImage.Enhance](GMImageEnhance.md) - [GMImage.Erase](GMImageErase.md)

[HTML Version](GMImageEqualize.shtml)