GMImage.GetColorMap
-------------------

Queries an entry in the color map.

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

MBS( "GMImage.GetColorMap"; ImageRef; Index ) 

**MBS**( **"GMImage.GetColorMap";** /\* Queries an entry in the color map. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Index**) /\* Position of the entry. Zero based.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Index | Position of the entry. Zero based. | 0 |

### Result

Returns a color as string.

### Description

Queries an entry in the color map.  
### See also

- [GMImage.GetClipMask](GMImageGetClipMask.md)
- [GMImage.GetColorFuzz](GMImageGetColorFuzz.md)
- [GMImage.GetColorMapSize](GMImageGetColorMapSize.md)
- [GMImage.GetColorSpace](GMImageGetColorSpace.md)
- [GMImage.SetColorFuzz](GMImageSetColorFuzz.md)
- [GMImage.SetColorMap](GMImageSetColorMap.md)
- [GMImage.SetColorMapSize](GMImageSetColorMapSize.md)
- [GMImage.SetColorSpace](GMImageSetColorSpace.md)

This function checks for a license.

Created 18th August 2014 , last changed 6th May 2024

  
[GMImage.GetColorFuzz](GMImageGetColorFuzz.md) - [GMImage.GetColorMapSize](GMImageGetColorMapSize.md)

[HTML Version](GMImageGetcolorMap.shtml)