GMImage.GetBackgroundColor
--------------------------

Queries the Image background color.

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

MBS( "GMImage.GetBackgroundColor"; ImageRef ) 

**MBS**( **"GMImage.GetBackgroundColor";** /\* Queries the Image background color. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a color value as string.

### Description

Queries the Image background color.  
### See also

- [GMImage.GetBackgroundTexture](GMImageGetBackgroundTexture.md)
- [GMImage.SetBackgroundColor](GMImageSetBackgroundColor.md)
- [GMImage.SetBackgroundTexture](GMImageSetBackgroundTexture.md)

This function checks for a license.

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

  
[GMImage.GetAttributesJSON](GMImageGetAttributesJSON.md) - [GMImage.GetBackgroundTexture](GMImageGetBackgroundTexture.md)

[HTML Version](GMImageGetBackgroundColor.shtml)