Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Display device DPI

From: brett:codeconscious at: 22-Oct-2002 18:58

Hi Ashley,
> Open a word-processor of your choice and insert this image. Look at the > properties of the image and note the dimensions (usually given in cm's or > inches). Do the same thing on an alternate display device (eg. an LCD) and > note how the same image has different dimensions. Changing the printer or > screen resolution does not effect this, it seems to be a property of the > display device itself (dot pitch?). The practical consequence of this is > that the above image saved (using one type of display device) will appear > pixelated on another. I found this out the hard way after comparing > documentation (screen-shots) written on a 17" CRT (at 1024x768) and viewed > on a 15" LCD (also at 1024x768).
I have access to a desktop with CRT and a laptop but I could not replicate the problem. Still how the Word processor arrives at a conversion of 100 pixels to 2.65cm (for me) is a good question. I'm guessing that a Windows API call is necessary to find the device units. What happens on Linux I don't know. For Windows, something around here may help you: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons _88s3.asp?frame=true EEK! :^) Regards, Brett.