Displaying Images on the screen in their original size

Hi, I’m new and currently in the process of learning the most basic concepts about Corona, one of which include displaying images. What bothers me is that my images and sprites always appear stretched in some way. One thing I’ve tried is matching my content width and height to the screen resolution width and height like this: 
 

-- config.lua application = {     content =     {         width = display.pixelWidth,         height = display.pixelHeight,         scale = "none"     } }

But for some reason, when using this setting, every image is exactly half the size, which means that using an xScale und yScale value of 2 for my images would display them in their original size. Can someone explain what is going on here? Also, what are some other ways / methods?

Edit: I just realized that in this case an xScale value of 2 doesn’t really show the original size at all but in fact double the size. It’s just that the simulator window is half the size of what it should be.
wC1LYSX.png
But still, with an xScale of 1 some images look distorted on the simulator and on my actual Android phone. If I wanted to display my images on my screen perfectly and without any kind of distortion or stretching, what would be the best way to do it?

Hi @zephos7,

The “scale” setting of “none” is no longer supported. You must choose either “letterbox”, “zoomEven”, or “zoomStretch”. For more details, please refer to the guide that discusses dynamic content scaling here:

http://docs.coronalabs.com/guide/basics/configSettings/index.html#dynamicimages

Regards,

Brent

Thank you, but this still doesn’t solve my problem.

You also can’t set a variable value for the width and height as you’re trying. You need to choose a proper content area size depending on your needs, and work out from there. I suggest you read the following tutorial:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

Brent

Hi @zephos7,

The “scale” setting of “none” is no longer supported. You must choose either “letterbox”, “zoomEven”, or “zoomStretch”. For more details, please refer to the guide that discusses dynamic content scaling here:

http://docs.coronalabs.com/guide/basics/configSettings/index.html#dynamicimages

Regards,

Brent

Thank you, but this still doesn’t solve my problem.

You also can’t set a variable value for the width and height as you’re trying. You need to choose a proper content area size depending on your needs, and work out from there. I suggest you read the following tutorial:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

Brent