Images with content scaling

If I am trying to build for multiple devices, should my background images be the size of the width and height in my config.lua file? If not, what sizes should they be?

Much appreciated,
J.K. [import]uid: 66117 topic_id: 19030 reply_id: 319030[/import]

Hi Joe Kool,

You should use the dynamic content scaling features of Corona which means you will actually have the background at several different sizes depending on what screen sizes you are targeting. In the simplest example you might have a set of graphics designed for the iPhone 3 resolution of 320x480, and a second set twice as large for the iPhone 4/4s at 640x960. The second set of graphics would be deliniated with a suffix of your choice, like “@2x”, and you set this up in your config.lua. Here is more information:
http://blog.anscamobile.com/2011/01/dynamic-image-resolution-made-easy/

http://developer.anscamobile.com/content/configuring-projects [import]uid: 8139 topic_id: 19030 reply_id: 73393[/import]

kRona,

Thanks for your input. From what I understood, dynamic content SCALING happens automatically with the right config.lua file, whereas dynamic content RESOLUTION is what happens when you use the “@2x” suffix. Maybe I’m wrong, but no one has said anything about having a larger copy of every single image, just for content scaling. That was kind of the great thing about content scaling. It requires no change in the code or the image. [import]uid: 66117 topic_id: 19030 reply_id: 73394[/import]

you still needs 2x times higher resolution for your images, otherwise they will not look pretty on retina displays or ipads [import]uid: 16142 topic_id: 19030 reply_id: 73395[/import]

@darkconsols,

So I just need one set of 2x pics for iPhone4 and iPad, right? [import]uid: 66117 topic_id: 19030 reply_id: 73396[/import]