[Overview][Types][Classes][Variables][Index] | Reference for unit 'Printers' (#lcl)

# TPrinterCanvas.XDPI

DPI (Dots per Inch) in the horizontal direction for the print device.

## Declaration

Source position: printers.pas line 134

`public property TPrinterCanvas.XDPI : Integer read GetXDPI write SetXDPI;`

## Description

XDPI is an Integer property which indicates the DPI (Dots per Inch) resolution for the horizontal axis on the print device.

The value for the property is normally provided by the Printer device using the canvas to render document pages. When Printer is assigned, the XDPI value in the print device is used as the property value. If Printer is not assigned, the existing value in the property is used. When the existing value is 0 (zero) or a negative number, the value 300 is assumed.

A new value assigned to the property is not applied to the Printer device.

XDPI is used to calculate the default value for the PaperWidth property.

Use YDPI for the resolution of the print device along the vertical axis.

## See also

TPrinterCanvas.Printer |  | Device which uses the canvas to print a document.
TPrinterCanvas.PaperWidth |  | Horizontal size for the paper selected in the print device.
TPrinterCanvas.YDPI |  | DPI (Dots per Inch) in the vertical direction for the print device.
TPrinter.XDPI |  | Number of DPI (Dots per Inch) on the horizontal axis for the selected device.
TPrinter.YDPI |  | Number of DPI (Dots per Inch) on the vertical axis for the selected device.