GMImage.SetComment
------------------

Sets the image comment.

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

MBS( "GMImage.SetComment"; ImageRef; Comment ) 

**MBS**( **"GMImage.SetComment";** /\* Sets the image comment. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Comment**) /\* The new comment.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Comment | The new comment. | "Hello World" |

### Result

Returns "OK" on success.

### Description

Sets the image comment.  
### See also

- [GMImage.GetComment](GMImageGetComment.md)
- [GMImage.GetCompose](GMImageGetCompose.md)
- [GMImage.Segment](GMImageSegment.md)
- [GMImage.SetCompose](GMImageSetCompose.md)
- [GMImage.SetFont](GMImageSetFont.md)

This function checks for a license.

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

  
[GMImage.SetColorSpace](GMImageSetColorSpace.md) - [GMImage.SetCompose](GMImageSetCompose.md)

[HTML Version](GMImageSetComment.shtml)