PdfPrinterResolution

Inheritance: java.lang.Object, com.aspose.pdf.printing.PdfPrinterResolution

public class PdfPrinterResolution extends Object

Represents the resolution supported by a printer.

Constructors

ConstructorDescription
PdfPrinterResolutionInitializes a new instance of the PrinterResolution class.

Methods

MethodDescription
getKindsets the printer resolution.
getXGets the horizontal printer resolution, in dots per inch.
getYGets the vertical printer resolution, in dots per inch.
setKindGets or sets the printer resolution.
setXSets the horizontal printer resolution, in dots per inch.
setYSets the vertical printer resolution, in dots per inch.

PdfPrinterResolution

public PdfPrinterResolution()

Initializes a new instance of the PrinterResolution class.

getKind

public int getKind()

sets the printer resolution.

Returns: PdfPrinterResolutionKind element @see PdfPrinterResolutionKind

getX

public int getX()

Gets the horizontal printer resolution, in dots per inch.

Returns: int value

getY

public int getY()

Gets the vertical printer resolution, in dots per inch.

Returns: int value

setKind

public void setKind(int value)

Gets or sets the printer resolution.

Parameters:

ParameterTypeDescription
valuePdfPrinterResolutionKind element @see PdfPrinterResolutionKind

setX

public void setX(int value)

Sets the horizontal printer resolution, in dots per inch.

Parameters:

ParameterTypeDescription
valueint value

setY

public void setY(int value)

Sets the vertical printer resolution, in dots per inch.

Parameters:

ParameterTypeDescription
valueint value