Hi,
Starting to use printer units, I made some tests, and I noticed that XDPI and
YDPI and correctly given, but PageHeight and PageWidth are not in pixels, but
in tenth of millimeter, and the Physical and Work Rects as well, with these
two rects identical, which is not often right, and for sure not with my
printer.
In WinPrinters.inc, the function DoGetPaperRect calls DC_PAPERSIZE which gives
these tenth of millimeter values (2970 x 2100 for an A4 paper), and takes
twice the same value for PhysicalRect and WorkRect.
What is the reason why these dimensions are not in pixels ?
Using GetDeviceCaps would give the values (dimensions and offsets in pixels).
BTW, on Linux it is given in pixels, if I well understand.
Jean-Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives