GMImage.SetStrokeDashOffset
---------------------------

Sets the stroke dash offset.

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

MBS( "GMImage.SetStrokeDashOffset"; ImageRef; Offset ) 

**MBS**( **"GMImage.SetStrokeDashOffset";** /\* Sets the stroke dash offset. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Offset**) /\* The new value.e.g. 1.5 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the stroke dash offset.  
While drawing using a dash pattern, specify distance into the dash pattern to start the dash (default 0).  
### See also

- [GMImage.GetStrokeDashArray](GMImageGetStrokeDashArray.md)
- [GMImage.GetStrokeDashOffset](GMImageGetStrokeDashOffset.md)
- [GMImage.SetStrokeDashArray](GMImageSetStrokeDashArray.md)

This function checks for a license.

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

  
[GMImage.SetStrokeDashArray](GMImageSetStrokeDashArray.md) - [GMImage.SetStrokeLineCap](GMImageSetStrokeLineCap.md)

[HTML Version](GMImageSetStrokeDashOffset.shtml)