PrinterResolution

Inheritance: java.lang.Object

public class PrinterResolution

Represents the resolution supported by a printer.

Constructors

ConstructorDescription
PrinterResolution()

Methods

MethodDescription
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:

ParameterTypeDescription
valueintthe 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:

ParameterTypeDescription
valueintthe vertical printer resolution, in dots per inch.