GMImage.StrokePattern
---------------------

Sets the pattern image to use while stroking object outlines.

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

MBS( "GMImage.StrokePattern"; ImageRef; patternImageRef ) 

**MBS**( **"GMImage.StrokePattern";** /\* Sets the pattern image to use while stroking object outlines. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$patternImageRef**) /\* The image reference number.e.g. 2 \*/ 

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the pattern image to use while stroking object outlines.  
This function checks for a license.

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

  
[GMImage.Strip](GMImageStrip.md) - [GMImage.Swirl](GMImageSwirl.md)

[HTML Version](GMImageStrokePattern.shtml)