GMImage.MeanErrorPerPixel
-------------------------

The mean error per pixel computed when an image is color reduced.

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

MBS( "GMImage.MeanErrorPerPixel"; ImageRef ) 

**MBS**( **"GMImage.MeanErrorPerPixel";** /\* The mean error per pixel computed when an image is color reduced. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns the mean error per pixel as number.

### Description

The mean error per pixel computed when an image is color reduced.  
This function checks for a license.

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

  
[GMImage.MatteFloodfill](GMImageMatteFloodfill.md) - [GMImage.MedianFilter](GMImageMedianFilter.md)

[HTML Version](GMImageMeanErrorPerPixel.shtml)