Resolution

Inheritance: java.lang.Object

public final class Resolution

Represents class for holding image resolution.

Constructors

ConstructorDescription
Resolution(int value)Initializes a new instance of the Resolution class.
Resolution(int valueX, int valueY)Initializes a new instance of the Resolution class.

Methods

MethodDescription
getX()Gets horizontal image resolution.
setX(int value)Sets horizontal image resolution.
getY()Gets vertical image resolution.
setY(int value)Sets vertical image resolution.

Resolution(int value)

public Resolution(int value)

Initializes a new instance of the Resolution class.

Parameters:

ParameterTypeDescription
valueintValue which represents the horizontal and vertical resolution.

Resolution(int valueX, int valueY)

public Resolution(int valueX, int valueY)

Initializes a new instance of the Resolution class.

Parameters:

ParameterTypeDescription
valueXintHorizontal resolution.
valueYintVertical resolution.

getX()

public int getX()

Gets horizontal image resolution.

Returns: int - int value

setX(int value)

public void setX(int value)

Sets horizontal image resolution.

Parameters:

ParameterTypeDescription
valueintint value

getY()

public int getY()

Gets vertical image resolution.

Returns: int - int value

setY(int value)

public void setY(int value)

Sets vertical image resolution.

Parameters:

ParameterTypeDescription
valueintint value