GMImage.GetFillRule
-------------------

Queries 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.GetFillRule"; ImageRef ) 

**MBS**( **"GMImage.GetFillRule";** /\* Queries the rule to use when filling drawn objects \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a number.

### Description

Queries the rule to use when filling drawn objects  
UndefinedRule = 0, EvenOddRule = 1, NonZeroRule = 2  
### See also

- [GMImage.GetFileName](GMImageGetFileName.md)
- [GMImage.GetFileSize](GMImageGetFileSize.md)
- [GMImage.GetFillColor](GMImageGetFillColor.md)
- [GMImage.GetTileName](GMImageGetTileName.md)
- [GMImage.SetFileName](GMImageSetFileName.md)
- [GMImage.SetFillColor](GMImageSetFillColor.md)
- [GMImage.SetFillRule](GMImageSetFillRule.md)

This function checks for a license.

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

  
[GMImage.GetFillColor](GMImageGetFillColor.md) - [GMImage.GetFilterType](GMImageGetFilterType.md)

[HTML Version](GMImageGetFillRule.shtml)