GMImage.GetDefineValue
----------------------

Queries 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.GetDefineValue"; ImageRef; Magick; Key ) 

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

### Parameters

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

### Result

Returns the value as string.

### Description

Queries 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.GetDefineSet](GMImageGetDefineSet.md)
- [GMImage.SetDefineValue](GMImageSetDefineValue.md)

This function checks for a license.

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

  
[GMImage.GetDefineSet](GMImageGetDefineSet.md) - [GMImage.GetDensity](GMImageGetDensity.md)

[HTML Version](GMImageGetDefineValue.shtml)