**Inheritance:**
java.lang.Object
```
public class PrinterResolution
```

Represents the resolution supported by a printer.
## Constructors

| Constructor | Description |
| --- | --- |
| [PrinterResolution()](#PrinterResolution--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getX()](#getX--) | Gets the horizontal printer resolution, in dots per inch. |
| [setX(int value)](#setX-int-) | Sets the horizontal printer resolution, in dots per inch. |
| [getY()](#getY--) | Gets the vertical printer resolution, in dots per inch. |
| [setY(int value)](#setY-int-) | Sets the vertical printer resolution, in dots per inch. |
### PrinterResolution() {#PrinterResolution--}
```
public PrinterResolution()
```


### getX() {#getX--}
```
public final int getX()
```


Gets the horizontal printer resolution, in dots per inch.

**Returns:**
int - The horizontal printer resolution, in dots per inch, if `Kind` is set to `PrinterResolutionKind.Custom`; otherwise, a dmPrintQuality value.
### setX(int value) {#setX-int-}
```
public final void setX(int value)
```


Sets the horizontal printer resolution, in dots per inch.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the horizontal printer resolution, in dots per inch. |

### getY() {#getY--}
```
public final int getY()
```


Gets the vertical printer resolution, in dots per inch.

**Returns:**
int - The vertical printer resolution, in dots per inch.
### setY(int value) {#setY-int-}
```
public final void setY(int value)
```


Sets the vertical printer resolution, in dots per inch.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the vertical printer resolution, in dots per inch. |

