GMImage.SetColorMapSize
-----------------------

Sets the Colormap size (number of colormap entries)

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

MBS( "GMImage.SetColorMapSize"; ImageRef; colorMapSize ) 

**MBS**( **"GMImage.SetColorMapSize";** /\* Sets the Colormap size (number of colormap entries) \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$colorMapSize**) /\* The size number.e.g. 256 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the Colormap size (number of colormap entries)  
### See also

- [GMImage.GetColorMap](GMImageGetColorMap.md)
- [GMImage.GetColorMapSize](GMImageGetColorMapSize.md)
- [GMImage.GetColorSpace](GMImageGetColorSpace.md)
- [GMImage.SetColorMap](GMImageSetColorMap.md)
- [GMImage.SetColorSpace](GMImageSetColorSpace.md)

This function checks for a license.

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

  
[GMImage.SetColorMap](GMImageSetColorMap.md) - [GMImage.SetColorSpace](GMImageSetColorSpace.md)

[HTML Version](GMImageSetColorMapSize.shtml)