public final class Margins extends Object
This class represents margins of an image.
| Constructor and Description |
|---|
Margins()
Initializes a new instance of the
Margins class. |
Margins(int left,
int right,
int top,
int bottom)
Initializes a new instance of the
Margins class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBottom()
Gets the bottom.
|
int |
getLeft()
Gets the left.
|
int |
getRight()
Gets the right.
|
int |
getTop()
Gets the top.
|
void |
setBottom(int value)
Sets the bottom.
|
void |
setLeft(int value)
Sets the left.
|
void |
setRight(int value)
Sets the right.
|
void |
setTop(int value)
Sets the top.
|
public Margins(int left,
int right,
int top,
int bottom)
Initializes a new instance of the Margins class.
left - The left coordinate.right - The right coordinate.top - The top coordinate.bottom - The bottom coordinate.public Margins()
Initializes a new instance of the Margins class.
public int getLeft()
Gets the left.
public void setLeft(int value)
Sets the left.
value - int value: The left.public int getRight()
Gets the right.
public void setRight(int value)
Sets the right.
value - int value: The right.public int getTop()
Gets the top.
public void setTop(int value)
Sets the top.
value - int value: The top.public int getBottom()
Gets the bottom.
public void setBottom(int value)
Sets the bottom.
value - int value: The bottom.Copyright © 2025 Aspose. All Rights Reserved.