Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unit of measurement for the width and height..
Message
From
07/12/2006 12:37:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/12/2006 22:00:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01175467
Message ID:
01175767
Views:
6
>Hi Hilmar, thanks for your reply. I did a google and found a site to convert pixel to inches. So, it isn't accurate too?

As I said, it depends on the screen size. I forgot to say that it also depends on the screen resolution.

For instance, with a 800 x 600 resolution, the same line will look bigger on a 21" screen than on a 14" screen (50% bigger, actually).

Also, on the same screen, with a higher resolution, the figure would look smaller.

So, to calculate the size of a rectangle in cm., you would need to know:
  • The dimensions of the rectangle in pixels
  • The size of your screen, width x height. Note that 14", 17", etc. is the diagonal, and that it includes the borders, not only the visible area.
  • The screen resolution, for instance, 800 x 600.

    The last item you can easily get, in VFP, with sysmetric(). AFAIK, there is no way to automatically detect the screen size.

    Once you know all this, the actual calculations are fairly simple.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform