Re: Retina scale factor versus display metrics

2012-10-26 Thread Monte Goulding
I'm yet to play with it but I believe it will just return an approximation into 
the general density groups (closest .25). Also 1 = 160 on android, 163 on 
iPhone/iPad mini and 132 on iPad. I said as much on the feature request when I 
read Marks implementation notes but then it was closed without comment so I 
don't know if it was read.

Cheers

--
M E R Goulding
Software development services

mergExt - There's an external for that!

On 27/10/2012, at 5:22 AM, Richard Gaskin  wrote:

> I just hope my hunch is correct. :)
> 
> If you find it's implemented differently please post a note.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Richard Gaskin

Thomas McGrath III wrote:

So until someone says different I will go with this for my project. Thanks….


I just hope my hunch is correct. :)

If you find it's implemented differently please post a note.

Thanks -

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Thomas McGrath III
Thanks Richard, sometimes I need to hear it twice ;-)

So until someone says different I will go with this for my project. Thanks….

Tom

Thomas J McGrath III
3mcgr...@comcast.net

Lazy River Software
http://lazyriver.on-rev.com





On Oct 26, 2012, at 1:24 PM, Richard Gaskin  wrote:

> I do honestly believe that the new mobilePixelDensity function will provide 
> the specificity you're looking for, based on actual density rather than the 
> more general density groupings.
> 
> If anyone know otherwise it might merit a bug report, since the specific 
> density value is far more useful than the approximation.
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter:  http://twitter.com/FourthWorldSys
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Peter Haworth
Hi Richard,
Reading the QCC report you submitted for this, I see comments that this
should be available for the desktop as well as mobile devices, but
"mobilePixelDensity" implies that it is iOS and Android only.  Where does
that leave us as far as the newer Macs with Retina displays?
Pete
lcSQL Software 



On Fri, Oct 26, 2012 at 10:24 AM, Richard Gaskin  wrote:

> I do honestly believe that the new mobilePixelDensity function will
> provide the specificity you're looking for, based on actual density rather
> than the more general density groupings.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Richard Gaskin

Thomas McGrath III wrote:

> On Oct 26, 2012, at 12:28 PM, Richard Gaskin wrote:
>>
>> I believe LC 5.5.3's new mobilePixelDensity function will provide
>> the specificity you're looking for.
>
> Richard, Thanks for the reply. But that does not really answer the
> question of wether the new mobilePixelDensity is actually based on
> pixel doubling (halving, tripling, whatever) or just of categorized
> screen sizes as my searches on the internet seems to be saying.
>
> In other words is the new mobilePixelDensity a true actual density
> of the screen or just a trick to group different sized screens into
> manageable groups and figure out a 'rough' screen percentage using
> DPI?

I do honestly believe that the new mobilePixelDensity function will 
provide the specificity you're looking for, based on actual density 
rather than the more general density groupings.


If anyone know otherwise it might merit a bug report, since the specific 
density value is far more useful than the approximation.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Thomas McGrath III
Richard, Thanks for the reply. But that does not really answer the question of 
wether the new mobilePixelDensity is actually based on pixel doubling (halving, 
tripling, whatever) or just of categorized screen sizes as my searches on the 
internet seems to be saying. 

In other words is the new mobilePixelDensity a true actual density of the 
screen or just a trick to group different sized screens into manageable groups 
and figure out a 'rough' screen percentage using DPI?

Also, on Android does this return Denisty_Low or ldli or does it return 0.75 ?

Thanks again,

Tom

Thomas J McGrath III
3mcgr...@comcast.net

Lazy River Software
http://lazyriver.on-rev.com


On Oct 26, 2012, at 12:28 PM, Richard Gaskin  wrote:
> 
> I believe LC 5.5.3's new mobilePixelDensity function will provide the 
> specificity you're looking for.
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Retina scale factor versus display metrics

2012-10-26 Thread Richard Gaskin

Thomas McGrath wrote:

DisplayMetrics.density is the "logical density of the display", i.e. a value of 0.75 
(ldpi), 1.0 (mdpi), 1.5 (hdpi) or 2.0 (xhdpi). Multiply this value by 160 to get the "screen 
density expressed as dots-per-inch", i.e. a value of 120 (ldpi), 160 (mdpi), 240 (hdpi) or 320 
(xhdpi).

But this can't be used as a multiplier of pixels like the retina result, or can 
it? And if so, are there really that many retina/pixel doubled displays out 
there?

I double the size of my standard livecode controls to get a retina pixel so 
should I be multiplying the density result to get a true scale for standard 
livecode controls? Is this the size and width, height of a device or the 
virtual screen size of a devices retina or not screen?


I believe LC 5.5.3's new mobilePixelDensity function will provide the 
specificity you're looking for.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Retina scale factor versus display metrics

2012-10-26 Thread Thomas McGrath III
I don't have any Android devices to test with and I am wondering how to deal 
with Retina scale factor versus display metrics for Android development. 

I thought that display metrics where just the categories that different 
physically sized Android devices fit into and not the actual doubling of pixels 
like with retina displays. I thought I heard of other phones that have retina 
like displays at different scales (1.5) I believe but this display metric seems 
different than that.

Also, what does the Display Metrics return? The docs mention absolutely 
nothing. I looked Display Metrics up on the internet and got all kinds of 
different approaches and results for this like DisplayMetrics.DENSITY_LOW and 
ldli and display independent pixels versus actual pixels and in Livecode we 
have one logical 'point' mapped to two physical 'pixels' which don't reference 
dpi at all.

 The best I found is this:

DisplayMetrics.density is the "logical density of the display", i.e. a value of 
0.75 (ldpi), 1.0 (mdpi), 1.5 (hdpi) or 2.0 (xhdpi). Multiply this value by 160 
to get the "screen density expressed as dots-per-inch", i.e. a value of 120 
(ldpi), 160 (mdpi), 240 (hdpi) or 320 (xhdpi).

But this can't be used as a multiplier of pixels like the retina result, or can 
it? And if so, are there really that many retina/pixel doubled displays out 
there?

I double the size of my standard livecode controls to get a retina pixel so 
should I be multiplying the density result to get a true scale for standard 
livecode controls? Is this the size and width, height of a device or the 
virtual screen size of a devices retina or not screen?

Thanks

Tom

Thomas J McGrath III
3mcgr...@comcast.net

Lazy River Software
http://lazyriver.on-rev.com






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode