Margins
Contents
[
Hide
]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 | Initializes a new instance of the {@code Margins} class. |
| Margins | Initializes a new instance of the {@code Margins} class. |
Methods
| Method | Description |
|---|---|
| getBottom | Gets the bottom. |
| getLeft | Gets the left. |
| getRight | Gets the right. |
| getTop | Gets the top. |
| setBottom | Sets the bottom. |
| setLeft | Sets the left. |
| setRight | Sets the right. |
| setTop | Sets the top. |
Margins
public Margins()
Initializes a new instance of the {@code Margins} class.
Margins
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
public int getBottom()
Gets the bottom.
Returns: int value: The bottom.
getLeft
public int getLeft()
Gets the left.
Returns: int value: The left.
getRight
public int getRight()
Gets the right.
Returns: int value: The right.
getTop
public int getTop()
Gets the top.
Returns: int value: The top.
setBottom
public void setBottom(int value)
Sets the bottom.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value: The bottom. |
setLeft
public void setLeft(int value)
Sets the left.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value: The left. |
setRight
public void setRight(int value)
Sets the right.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value: The right. |
setTop
public void setTop(int value)
Sets the top.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value: The top. |