Trouble with image resolution

So I have been looking around for a little bit now but can’t seem to find an answer. I have programmed my app to run on either the iPhone or iPad but I cannot get the images to scale properly. First let’s look at my config.lua file:

[lua]application =
{
content =
{
fps = 60,
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["@2x"] = 2
},
},
}[/lua]

I am using the letterbox scaling mode as well as this imageSuffix parameter. When I save my files, I always do for example, background.png with a width of 480 and a height of 320 ( I am in landscape mode ) and then I save background@2x.png with a width of 960 and a height of 640.

The background@2x.png does not seem to be called when I change the device. I think there is a step that I am missing though. Can anyone help me out?

BTW. I am using build version 2012.815 (2012.12.8) [import]uid: 50511 topic_id: 27368 reply_id: 327368[/import]

are you using display.newImageRect ?

[import]uid: 84637 topic_id: 27368 reply_id: 111161[/import]

Ahh, no I am not! I am going to go back and fix this. Although since display.newImage sets up using x and y coordinates, I am going to have to take these out and change them to width and height then call .x and .y. Like this right?

(in landscape mode)

[lua]–This
local background = display.newImage(“image1.png”, content.width/2, content.height/2, true)

–Becomes this
local background = display.newImageRect(“images1.png”, 480, 320, true)
background.x = content.width/2; background.y = content.height/2;[/lua] [import]uid: 50511 topic_id: 27368 reply_id: 111164[/import]

Close:)

[code]
–This
local background = display.newImage(“image1.png”, content.width/2, content.height/2, true)

–Becomes this
local background = display.newImageRect(“images1.png”, 480, 320)
background.x = content.width/2; background.y = content.height/2;
[/code] [import]uid: 84637 topic_id: 27368 reply_id: 111165[/import]

How come I take out the true parameter? Is it because we are technically assigning the object a size manually? [import]uid: 50511 topic_id: 27368 reply_id: 111169[/import]

@Roy, pretty much, because using newImageRect you specify manually the size of the base image… Which naturally is going to be displayed at the full resolution [import]uid: 84637 topic_id: 27368 reply_id: 111176[/import]