GMImage.GetModulusDepth
-----------------------

Queries the image modulus depth.

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

MBS( "GMImage.GetModulusDepth"; ImageRef ) 

**MBS**( **"GMImage.GetModulusDepth";** /\* Queries the image modulus depth. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a number.

### Description

Queries the image modulus depth.  
That is the minimum number of bits required to support red/green/blue components without loss of accuracy.  
### See also

- [GMImage.SetModulusDepth](GMImageSetModulusDepth.md)

This function checks for a license.

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

  
[GMImage.GetMatteColor](GMImageGetMatteColor.md) - [GMImage.GetMonochrome](GMImageGetMonochrome.md)

[HTML Version](GMImageGetModulusDepth.shtml)