There is a math rule to use on newImageRect for image_size_width and image_size_height depend on config.lua defined sizes? If I use exact dimensions of file image - it remain black margins left/right. I need to use on file image a different size that from scalling Corona fill the screen
Now I have
* file image on 1140x720 pixel ( base - @1x ) and 2280x1140 as @2x
* load Images with
background = display.newImageRect(group,“background.jpg”,1280,720)
* and config.lua :
content =
{
width = 720,
height = 1140,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.6,
["@3x"] = 2.4 ,
["@4x"] = 3.2,
},
},
It seems to work ok and display fine background on Android.
If i use 1280x800 image file - through scalling - I will see black bars.
The question is : when load with newImageRect it’s ok to use main target resolution ? ( for main targeted display )
Thank you
Radu [import]uid: 157691 topic_id: 35212 reply_id: 141157[/import]