**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.emf.MetaObject](../../com.aspose.imaging.fileformats.emf/metaobject), [com.aspose.imaging.fileformats.wmf.objects.WmfObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfobject)
```
public class WmfInvertRegion extends WmfObject
```

The META\_INVERTREGION record draws a region in which the colors are inverted.
## Constructors

| Constructor | Description |
| --- | --- |
| [WmfInvertRegion(WmfGraphicObject region)](#WmfInvertRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-) | Initializes a new instance of the `WmfInvertRegion` class. |
| [WmfInvertRegion()](#WmfInvertRegion--) | Initializes a new instance of the `WmfInvertRegion` class. |
## Methods

| Method | Description |
| --- | --- |
| [getRegionIndex()](#getRegionIndex--) | Gets or sets the index of the region. |
| [setRegionIndex(int value)](#setRegionIndex-int-) | Gets or sets the index of the region. |
### WmfInvertRegion(WmfGraphicObject region) {#WmfInvertRegion-com.aspose.imaging.fileformats.wmf.objects.WmfGraphicObject-}
```
public WmfInvertRegion(WmfGraphicObject region)
```


Initializes a new instance of the `WmfInvertRegion` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| region | [WmfGraphicObject](../../com.aspose.imaging.fileformats.wmf.objects/wmfgraphicobject) | The region. |

### WmfInvertRegion() {#WmfInvertRegion--}
```
public WmfInvertRegion()
```


Initializes a new instance of the `WmfInvertRegion` class.

### getRegionIndex() {#getRegionIndex--}
```
public int getRegionIndex()
```


Gets or sets the index of the region.

Value: The index of the region.

**Returns:**
int
### setRegionIndex(int value) {#setRegionIndex-int-}
```
public void setRegionIndex(int value)
```


Gets or sets the index of the region.

Value: The index of the region.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

