GMImage.Frame
-------------

Frame image.

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

MBS( "GMImage.Frame"; ImageRef; Width; Height; innerBevel; outerBevel ) 

**MBS**( **"GMImage.Frame";** /\* Frame image. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Width**; /\* The width of the framee.g. 300 \*/   
**$Height**; /\* The height of the framee.g. 200 \*/   
**$innerBevel**; /\* The inner bevel sizee.g. 6 \*/   
**$outerBevel**) /\* The outer bevel sizee.g. 6 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Width | The width of the frame | 300 |
| Height | The height of the frame | 200 |
| innerBevel | The inner bevel size | 6 |
| outerBevel | The outer bevel size | 6 |

### Result

Returns "OK" on success.

### Description

Frame image.  
### Examples

Adds a frame to the image:

 Let (   
\[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$RotateResult = MBS ("GMImage.Frame"; $Image );   
$Result = MBS ("[GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)"; $Image );   
$DestroyResult = MBS ("[GMImage.Release](GMImageRelease.md)";$Image )  
\];   
$Result )  
### See also

- [GMImage.Erase](GMImageErase.md)
- [GMImage.Format](GMImageFormat.md)
- [GMImage.Free](GMImageFree.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.Scale](GMImageScale.md)
- [GMImage.Shade](GMImageShade.md)
- [GMImage.Shave](GMImageShave.md)
- [GMImage.Trim](GMImageTrim.md)
- [GMImage.Wave](GMImageWave.md)

### Example Databases

- [GraphicsMagick/GraphicsMagick Sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Sample.shtml#11ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 21st December 2018

  
[GMImage.Format](GMImageFormat.md) - [GMImage.Free](GMImageFree.md)

[HTML Version](GMImageFrame.shtml)