**Inheritance:**
java.lang.Object, com.aspose.pdf.devices.Margins

```
public final class Margins extends Object
```

This class represents margins of an image.

## Constructors

| Constructor | Description |
| --- | --- |
| [Margins](#Margins--) | Initializes a new instance of the {@code Margins} class. |
| [Margins](#Margins-int-int-int-int-) | Initializes a new instance of the {@code Margins} class. |

## Methods

| Method | Description |
| --- | --- |
| [getBottom](#getBottom--) | Gets the bottom. |
| [getLeft](#getLeft--) | Gets the left. |
| [getRight](#getRight--) | Gets the right. |
| [getTop](#getTop--) | Gets the top. |
| [setBottom](#setBottom-int-) | Sets the bottom. |
| [setLeft](#setLeft-int-) | Sets the left. |
| [setRight](#setRight-int-) | Sets the right. |
| [setTop](#setTop-int-) | Sets the top. |

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

Initializes a new instance of the {@code Margins} class.

### Margins {#Margins-int-int-int-int-}
```
public Margins(int left, int right, int top, int bottom)
```

Initializes a new instance of the {@code Margins} class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| left |  | The left coordinate. |
| right |  | The right coordinate. |
| top |  | The top coordinate. |
| bottom |  | The bottom coordinate. |

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

Gets the bottom.

**Returns:**
int value: The bottom.

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

Gets the left.

**Returns:**
int value: The left.

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

Gets the right.

**Returns:**
int value: The right.

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

Gets the top.

**Returns:**
int value: The top.

### setBottom {#setBottom-int-}
```
public void setBottom(int value)
```

Sets the bottom.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value: The bottom. |

### setLeft {#setLeft-int-}
```
public void setLeft(int value)
```

Sets the left.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value: The left. |

### setRight {#setRight-int-}
```
public void setRight(int value)
```

Sets the right.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value: The right. |

### setTop {#setTop-int-}
```
public void setTop(int value)
```

Sets the top.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value: The top. |
