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

public final class Margins extends Object

This class represents margins of an image.

Constructors

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

Methods

MethodDescription
getBottomGets the bottom.
getLeftGets the left.
getRightGets the right.
getTopGets the top.
setBottomSets the bottom.
setLeftSets the left.
setRightSets the right.
setTopSets 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:

ParameterTypeDescription
leftThe left coordinate.
rightThe right coordinate.
topThe top coordinate.
bottomThe 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:

ParameterTypeDescription
valueint value: The bottom.

setLeft

public void setLeft(int value)

Sets the left.

Parameters:

ParameterTypeDescription
valueint value: The left.

setRight

public void setRight(int value)

Sets the right.

Parameters:

ParameterTypeDescription
valueint value: The right.

setTop

public void setTop(int value)

Sets the top.

Parameters:

ParameterTypeDescription
valueint value: The top.