GMImage.SetFillRule
-------------------

Sets the rule to use when filling drawn objects

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

MBS( "GMImage.SetFillRule"; ImageRef; fillrule ) 

**MBS**( **"GMImage.SetFillRule";** /\* Sets the rule to use when filling drawn objects \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$fillrule**) /\* UndefinedRule = 0, EvenOddRule = 1, NonZeroRule = 2e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| fillrule | UndefinedRule = 0, EvenOddRule = 1, NonZeroRule = 2 | 2 |

### Result

Returns "OK" on success.

### Description

Sets the rule to use when filling drawn objects  
### See also

- [GMImage.GetFileName](GMImageGetFileName.md)
- [GMImage.GetFileSize](GMImageGetFileSize.md)
- [GMImage.GetFillColor](GMImageGetFillColor.md)
- [GMImage.GetFillRule](GMImageGetFillRule.md)
- [GMImage.SetFileName](GMImageSetFileName.md)
- [GMImage.SetFillColor](GMImageSetFillColor.md)
- [GMImage.SetTileName](GMImageSetTileName.md)

### Example Databases

- [GraphicsMagick/GraphicsMagick Path Drawing](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Path%20Drawing.shtml#2ScriptAnchor_)

This function checks for a license.

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

  
[GMImage.SetFillColor](GMImageSetFillColor.md) - [GMImage.SetFilterType](GMImageSetFilterType.md)

[HTML Version](GMImageSetFillRule.shtml)