Resolution

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

public final class Resolution extends Object

Represents class for holding image resolution.

Constructors

ConstructorDescription
ResolutionInitializes a new instance of the {@code Resolution} class.
ResolutionInitializes a new instance of the {@code Resolution} class.

Methods

MethodDescription
getXGets horizontal image resolution.
getYGets vertical image resolution.
setXSets horizontal image resolution.
setYSets vertical image resolution.

Resolution

public Resolution(int value)

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

Parameters:

ParameterTypeDescription
valueValue which represents the horizontal and vertical resolution.

Resolution

public Resolution(int valueX, int valueY)

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

Parameters:

ParameterTypeDescription
valueXHorizontal resolution.
valueYVertical resolution.

getX

public int getX()

Gets horizontal image resolution.

Returns: int value

getY

public int getY()

Gets vertical image resolution.

Returns: int value

setX

public void setX(int value)

Sets horizontal image resolution.

Parameters:

ParameterTypeDescription
valueint value

setY

public void setY(int value)

Sets vertical image resolution.

Parameters:

ParameterTypeDescription
valueint value