GMImage.SetDefineValue
----------------------

Sets a value.

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

MBS( "GMImage.SetDefineValue"; ImageRef; Magick; Key; Value ) 

**MBS**( **"GMImage.SetDefineValue";** /\* Sets a value. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Magick**; /\* The name of the codec \*/   
**$Key**; /\* A key name as string \*/   
**$Value**) /\* The value as string \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Magick | The name of the codec |  |
| Key | A key name as string |  |
| Value | The value as string |  |

### Result

Returns "OK" on success.

### Description

Sets a value.  
Tagged image format define (set/access coder-specific option) The magick option specifies the coder the define applies to. The key option provides the key specific to that coder. The value option provides the value to set (if any). See the get/set defineSet functions if the key must be removed entirely.  
### See also

- [GMImage.GetDefineValue](GMImageGetDefineValue.md)
- [GMImage.SetDefineSet](GMImageSetDefineSet.md)

This function checks for a license.

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

  
[GMImage.SetDefineSet](GMImageSetDefineSet.md) - [GMImage.SetDensity](GMImageSetDensity.md)

[HTML Version](GMImageSetDefineValue.shtml)