PrinterResolution
Contents
[
Hide
]Inheritance: java.lang.Object
public class PrinterResolution
Represents the resolution supported by a printer.
Constructors
Constructor | Description |
---|---|
PrinterResolution() |
Methods
Method | Description |
---|---|
getX() | Gets the horizontal printer resolution, in dots per inch. |
setX(int value) | Sets the horizontal printer resolution, in dots per inch. |
getY() | Gets the vertical printer resolution, in dots per inch. |
setY(int value) | Sets the vertical printer resolution, in dots per inch. |
PrinterResolution()
public PrinterResolution()
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)
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()
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)
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. |