Board index » delphi » PixelsPerInch and Logical Inch

PixelsPerInch and Logical Inch

Where can I find a good explanation of PixelsPerInch and Logical Inch?

If I divide my design-time screen height (768) by Screen.PixelsPerInch
(120), I get 6.4 Inches. What is the significance of this?

Many thanks.

 

Re:PixelsPerInch and Logical Inch


In article <3b4f7aae.25479...@news.earthlink.net>, s...@ieee.org (Sheldon

Quote
Shallon) writes:
>If I divide my design-time screen height (768) by Screen.PixelsPerInch
>(120), I get 6.4 Inches. What is the significance of this?

If your screen picture is 9.6 inches high (as my NEC F700 is) it means your
screen pixel is actually 0.0125 inches high and not 0.0083 inches high.

So you're really dealing with logical pixels. I expect it goes back to some
original 12 inch monitor at 320 x 240 colour display with a 0.028 inch spot.

When I code ...

  with Form1.Canvas do begin
    MoveTo(20, 20);
    LineTo(140, 20);  // line 120 pixels long
  end;

 ... I get a line 1.5 inches long.

But it's still a good picture <g>.

Alan Lloyd
alangll...@aol.com

Other Threads