GMImage.AddPathClosePath
------------------------

Closes subpath.

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

MBS( "GMImage.AddPathClosePath"; ImageRef ) 

**MBS**( **"GMImage.AddPathClosePath";** /\* Closes subpath. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |

### Result

Returns OK or error.

### Description

Closes subpath.  
Close the current subpath by drawing a straight line from the current point to current subpath's most recent starting point (usually, the most recent moveto point).  
### Blog Entries

- [GraphicsMagick in FileMaker, part 21](https://www.mbsplugins.de/archive/2022-12-21/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 21st June 2021

  
[GMImage.AddPathArcRel](GMImageAddPathArcRel.md) - [GMImage.AddPathCurvetoAbs](GMImageAddPathCurvetoAbs.md)

[HTML Version](GMImageAddPathClosePath.shtml)