WinXPrint_DevUnitsPerInch


dpi = WinXPrint_DevUnitsPerInch (hPrinter, @w, @h)

Gets the number of device units per inch. In other words, the dpi of the printer.

Parameter Description
w The horizontal dpi of the printer
h The vertical dpi of the printer

Returns

The horizontal dpi of the printer, which is usually the same as the vertical dpi.

Remarks

This function can be used to scale printed graphics to a particular physical size.

Examples

'get the dpi of a printer
dpi = WinXPrint_DevUnitsPerInch (hPrinter, @w, @h)

Related Links

WinXPrint_LogUnitsPerPoint
WinXPrint_Start
WinXPrint_Page