GMImage.GetMonochrome
---------------------

Queries the monochrome flag. Transform image to black and white

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

MBS( "GMImage.GetMonochrome"; ImageRef ) 

**MBS**( **"GMImage.GetMonochrome";** /\* Queries the monochrome flag. Transform image to black and white \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a boolean value.

### Description

Queries the monochrome flag. Transform image to black and white  
### See also

- [GMImage.SetMonochrome](GMImageSetMonochrome.md)

This function checks for a license.

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

  
[GMImage.GetModulusDepth](GMImageGetModulusDepth.md) - [GMImage.GetOrientation](GMImageGetOrientation.md)

[HTML Version](GMImageGetMonochrome.shtml)