Sign in Join
FPDoc Onlineexperiment

TPrinter.XDPI property

Member of TPrinterpublicIn unit Printers

Number of DPI (Dots per Inch) on the horizontal axis for the selected device.

Declaration

pascal
property XDPI: Integer read GetXDPI;

Description

XDPI is a read-only Integer property that contains the horizontal resolution for the print device in DPI (Dots per Inch). The value in XDPI is passed to the Canvas for the print device, and used to determine the paper width for the printer canvas.

In TPrinter, the value for the property is always 1. The read access specifier (GetXDPI) must be overridden in a descendent class to get the property value using the facilities available in the operating system / widgetset / printer-related technology for the implementation.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.