Resolution
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.devices.Resolution
public final class Resolution extends Object
Represents class for holding image resolution.
Constructors
| Constructor | Description |
|---|---|
| Resolution | Initializes a new instance of the {@code Resolution} class. |
| Resolution | Initializes a new instance of the {@code Resolution} class. |
Methods
| Method | Description |
|---|---|
| getX | Gets horizontal image resolution. |
| getY | Gets vertical image resolution. |
| setX | Sets horizontal image resolution. |
| setY | Sets vertical image resolution. |
Resolution
public Resolution(int value)
Initializes a new instance of the {@code Resolution} class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Value which represents the horizontal and vertical resolution. |
Resolution
public Resolution(int valueX, int valueY)
Initializes a new instance of the {@code Resolution} class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| valueX | Horizontal resolution. | |
| valueY | Vertical 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:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setY
public void setY(int value)
Sets vertical image resolution.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |