Sign in Join
FPDoc Onlineexperiment

TPrinter.YDPI property

Member of TPrinterpublicIn unit Printers

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

Declaration

pascal
property YDPI: Integer read GetYDPI;

Description

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

In TPrinter, the value for the property is always 1. The read access specifier (GetYDPI) 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.