GMImage.NewFromHex
------------------

Loads a picture from hex encoded data.

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

MBS( "GMImage.NewFromHex"; Text ) 

**MBS**( **"GMImage.NewFromHex";** /\* Loads a picture from hex encoded data. \*/  
**$Text**) /\* The text to decode. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to decode. |  |

### Result

Returns the ImageRef number on success.

### Description

Loads a picture from hex encoded data.  
Please call [GMImage.Release](GMImageRelease.md) later to free memory for this image.  
This is useful for images you got from a database.  
Image reference numbers are starting at 18000 and counting up for each new image.  
### See also

- [GMImage.NewFromBase64](GMImageNewFromBase64.md)
- [GMImage.NewFromFile](GMImageNewFromFile.md)
- [GMImage.Release](GMImageRelease.md)

### Example Databases

- [GraphicsMagick/Picture Text Encoding](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Picture%20Text%20Encoding.shtml#1ScriptAnchor_)

### Blog Entries

- [GraphicsMagick in FileMaker, part 1](https://www.mbsplugins.de/archive/2022-12-01/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr3](https://www.mbsplugins.de/archive/2012-10-19/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 11st April 2023

  
[GMImage.NewFromFile](GMImageNewFromFile.md) - [GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md)

[HTML Version](GMImageNewFromHex.shtml)