GMImage.SetStrokeMiterLimit
---------------------------

Sets the miter limit.

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

MBS( "GMImage.SetStrokeMiterLimit"; ImageRef; Value ) 

**MBS**( **"GMImage.SetStrokeMiterLimit";** /\* Sets the miter limit. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Value**) /\* The new value. \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the miter limit.   
When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'. The default value of this parameter is 4.  
### See also

- [GMImage.GetStrokeMiterLimit](GMImageGetStrokeMiterLimit.md)
- [GMImage.SetStrokeLineJoin](GMImageSetStrokeLineJoin.md)

This function checks for a license.

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

  
[GMImage.SetStrokeLineJoin](GMImageSetStrokeLineJoin.md) - [GMImage.SetStrokeWidth](GMImageSetStrokeWidth.md)

[HTML Version](GMImageSetStrokeMiterLimit.shtml)