public final class Resolution extends Object
Represents class for holding image resolution.
Constructor and Description |
---|
Resolution(int value)
Initializes a new instance of the
Resolution class. |
Resolution(int valueX,
int valueY)
Initializes a new instance of the
Resolution class. |
Modifier and Type | Method and Description |
---|---|
int |
getX()
Gets horizontal image resolution.
|
int |
getY()
Gets vertical image resolution.
|
void |
setX(int value)
Sets horizontal image resolution.
|
void |
setY(int value)
Sets vertical image resolution.
|
public Resolution(int value)
Initializes a new instance of the Resolution
class.
value
- Value which represents the horizontal and vertical resolution.public Resolution(int valueX, int valueY)
Initializes a new instance of the Resolution
class.
valueX
- Horizontal resolution.valueY
- Vertical resolution.public int getX()
Gets horizontal image resolution.
public void setX(int value)
Sets horizontal image resolution.
value
- int valuepublic int getY()
Gets vertical image resolution.
public void setY(int value)
Sets vertical image resolution.
value
- int value