How to use @2x images on my app

Right now Im confused on how to use the @2x images,

my config.lua is the same as the “modernizing config.lua” by Rob Miracle http://coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/

I can only use @2x if I manually put it in my code like this:

display.newImage("ImageName@2x.jpg")

but If I remove the @2x it uses the normal size of it, I don’t understand on how to automatically load the @2x suffixed images, and display that.

I was hoping that my app will be flexible on Ipad, and Phone devices.

if you make it fit perfectly on your screen then the config will re size it automatically.

-ask if you didn’t something- 

You have to use newImageRect() instead of newImage() for scaling to kick in. http://docs.coronalabs.com/daily/api/library/display/newImageRect.html

oh well that too lol

if you make it fit perfectly on your screen then the config will re size it automatically.

-ask if you didn’t something- 

You have to use newImageRect() instead of newImage() for scaling to kick in. http://docs.coronalabs.com/daily/api/library/display/newImageRect.html

oh well that too lol