GMImage.GetStrokeLineCap
------------------------

Specify the shape to be used at the end of open subpaths when they are stroked.

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

MBS( "GMImage.GetStrokeLineCap"; ImageRef ) 

**MBS**( **"GMImage.GetStrokeLineCap";** /\* Specify the shape to be used at the end of open subpaths when they are stroked. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a number.

### Description

Specify the shape to be used at the end of open subpaths when they are stroked.  
UndefinedCap = 0, ButtCap = 1, RoundCap = 2, SquareCap = 3  
### See also

- [GMImage.GetStrokeAntiAlias](GMImageGetStrokeAntiAlias.md)
- [GMImage.GetStrokeLineJoin](GMImageGetStrokeLineJoin.md)
- [GMImage.GetStrokeWidth](GMImageGetStrokeWidth.md)
- [GMImage.SetStrokeLineCap](GMImageSetStrokeLineCap.md)
- [GMImage.SetStrokeLineJoin](GMImageSetStrokeLineJoin.md)

This function checks for a license.

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

  
[GMImage.GetStrokeDashOffset](GMImageGetStrokeDashOffset.md) - [GMImage.GetStrokeLineJoin](GMImageGetStrokeLineJoin.md)

[HTML Version](GMImageGetStrokeLineCap.shtml)