Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Handling image/screen scalling
Started by llordglassenward87 Oct 12 2018 07:08 AM

1 reply to this topic
scalling config.lua resolution
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

llordglassenward87

[GLOBAL: userInfoPane.html]
llordglassenward87
  • Observer

  • 16 posts
  • Corona SDK

Hi,
so I am having some trouble with config.lua - scalling. I've tried various different configuration options, but it still doesn't work as I would like it to be working.
 
Okay but first things first: so let's say I put an image (e.g. simplest white rectangle) somewhere around the screen corner at specific coordinates (whilist viewing it as particular mobile on corona simulator). 
 
All I need about my scalling's work is that, that this image, when we set on different screen resolution, will stay in exactly same position that equals its original position, having same proportions, but enlarged etc. appriopriately according to currently set screen resolution.
 
In short: Image on every device would sport on the same 'acocommodation' as it's on the device I'm working with.
 
Hope you understood me, thanks for all hep!
 


[TOPIC: post.html]
#2

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,554 posts
  • Corona SDK

This explains it quite well.

 

http://www.sdknews.com/cross-platform/corona/understanding-content-scaling-in-corona




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: scalling, config.lua, resolution