GMImage.SetLineWidth
--------------------

Sets the Stroke width for drawing vector objects (default one)

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

MBS( "GMImage.SetLineWidth"; ImageRef; LineWidth ) 

**MBS**( **"GMImage.SetLineWidth";** /\* Sets the Stroke width for drawing vector objects (default one) \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$LineWidth**) /\* The line width.e.g. 5.0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| LineWidth | The line width. | 5.0 |

### Result

Returns "OK" on success.

### Description

Sets the Stroke width for drawing vector objects (default one)  
### See also

- [GMImage.Annotate](GMImageAnnotate.md)
- [GMImage.DrawArc](GMImageDrawArc.md)
- [GMImage.DrawCircle](GMImageDrawCircle.md)
- [GMImage.DrawEllipse](GMImageDrawEllipse.md)
- [GMImage.DrawLine](GMImageDrawLine.md)
- [GMImage.DrawRectangle](GMImageDrawRectangle.md)
- [GMImage.GetLineWidth](GMImageGetLineWidth.md)
- [GMImage.SetStrokeAntiAlias](GMImageSetStrokeAntiAlias.md)
- [GMImage.SetStrokeWidth](GMImageSetStrokeWidth.md)
- [GMImage.WriteToFile](GMImageWriteToFile.md)

### Example Databases

- [DynaPDF/Click Points](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Click%20Points.shtml#2ScriptAnchor_)
- [GraphicsMagick/Crop with Clicks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Crop%20with%20Clicks.shtml#3ScriptAnchor_)
- [GraphicsMagick/Drawing](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Drawing.shtml#1ScriptAnchor_)
- [GraphicsMagick/GraphicsMagick Path Drawing](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Path%20Drawing.shtml#1ScriptAnchor_)
- [GraphicsMagick/ProgressBar in Portal](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/ProgressBar%20in%20Portal.shtml#13010FieldAnchor_)
- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#4ScriptAnchor_)

### Blog Entries

- [Custom progress bars for FileMaker](https://www.mbsplugins.de/archive/2024-04-10/Custom_progress_bars_for_FileM/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 20](https://www.mbsplugins.de/archive/2022-12-20/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 10](https://www.mbsplugins.de/archive/2022-12-10/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[GMImage.SetLabel](GMImageSetLabel.md) - [GMImage.SetLogEventMask](GMImageSetLogEventMask.md)

[HTML Version](GMImageSetLineWidth.shtml)