Hi experts,
I have issue with image scaling which I cant resolve and I need your kind help…
I created the background image as follows :
splash.png (320 x 480)
splash@2x.png (720 x 1140)
splash@4x.png (1440 x 2280)
1- I used the standard config.lua which shown in (Tutorial: the Ultimate “config.lua” File)
2- my build file as follows :
[lua]
settings =
{
orientation =
{
default =“landscapeRight”,
content = "landscapeRight,
supported = { “landscapeLeft”, “landscapeRight” },
},
[/lua]
I used the following to call the background and display it which picks @4x for ipad
[lua]
local background = display.newImageRect(“splash.png”,360, 570)
[/lua]
my application should use landscape orientation but the issue I am getting the image centered and as portrait style. when I used the portrait, the image shows perfectly but the issue that my app does not work in portrait as there other stuff need to be adjusted if I use portrait.
can someone help in the issue ? I need to know if my image sizes are correct and how portrait and landscape sizes should be maintained.
I am confused between the image size (width + height) and it works with orientations
Regards
Abdul