Re: Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
Yes, and that is what I did eventually. What I decided to do at any rate is assume 110 PPI for MacOS and 96 PPI for Windows. Not sure what Linux is or if there is anything such as a standard. My goal is to create a popup menu for selecting stack/card size when creating a new stack. Bob S >

Re: Determine the screen DPI

2023-07-26 Thread Craig Newman via use-livecode
Hi. The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. Craig > On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use

Re: Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
NVM. Apparently it depends on several things, including manufacturer, OS, scaling etc. Bob S > On Jul 26, 2023, at 11:23 AM, Bob Sneidar via use-livecode > wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain > monitor in use. To do that I need to

Determine the screen DPI

2023-07-26 Thread Bob Sneidar via use-livecode
Hi all. I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the