Sign in Join
FPDoc Onlineexperiment

TPrinterCanvas.YDPI property

Member of TPrinterCanvaspublicIn unit Printers

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

Declaration

pascal
property YDPI: Integer read GetYDPI write SetYDPI;

Description

YDPI is an Integer property which indicates the DPI (Dots per Inch) resolution for the vertical 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 YDPI 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.

YDPI is used to calculate the default value for the PaperHeight property.

Use XDPI for the resolution of the print device along the horizontal axis.

See also

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