1920x1080 image auto downsized to 512x252?

Hello all,

I tried loading and image (display.newImage) into the simulator (iphone) with the resolution of 1920x1080. But it scales down automatically to 252. If I try to scale it up, the yScale will always stay around ~512.

Is there a way to get the image loaded in as the default? 

Thanks

  • Jeffrey Quek

Hi Jeffrey,

What does your config.lua setup look like? Are you using dynamic scaling?

Brent

application = {

        content = {

                width = 320,

                height = 480,

                scale = “letterbox”,

                antialias = false

        }

}

I think I am. But I need the dynamic scaling because my app is for iPhone 3gs - 5, iPod Touch and iPad 1-2

Have you tried display.newImageRect( “image.png”, 1920, 1080 )

Thats the answer! Thanks for the help!

Hi Jeffrey,

What does your config.lua setup look like? Are you using dynamic scaling?

Brent

application = {

        content = {

                width = 320,

                height = 480,

                scale = “letterbox”,

                antialias = false

        }

}

I think I am. But I need the dynamic scaling because my app is for iPhone 3gs - 5, iPod Touch and iPad 1-2

Have you tried display.newImageRect( “image.png”, 1920, 1080 )

Thats the answer! Thanks for the help!