display.newImageRect to scale down?

Hi, when creating my new app i used display.newImageRect to load my images, and saved them as 640x960 resolution. I was wondering if this means it will auto downscale for iphone3’s and use the full image for iphone 4’s?

ex

local songTitle = display.newImageRect(“song.png”, 100, 200)

song.png is a 200 x 400 image

Everything shows up fine, i just cant tell if its high res on iphone 4?

to clarify: instead of using song.png (100x200) and song@2x.png(200x400), i just created the high res image as song.png(200x400) and loaded it into an imageRect that is 100x200.

Anyone have any thoughts on this? [import]uid: 46742 topic_id: 11847 reply_id: 311847[/import]

@chris,
you will still have issues of positioning your objects, as you will get a 960 pixel high iPhone4 screen vs 480 pixels iPhone3 or a 1024 iPad screen.

So using imageRect is one good way, but what are you going to do about co-ordinates??

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 11847 reply_id: 43157[/import]

i actually havent had any issues with positioning. I did the usual object.x and object.y parameters and everything is popping up in all the right places.

application =
{
content =
{
width = 320,
height = 480,
scale = “zoomStretch”,
fps = 60
},
}
thats my config.lua(i did notice however that if i include the @2x, designations for images in my config.lua that everything goes s**t) but this all works fine. Thanks for the fast response! [import]uid: 46742 topic_id: 11847 reply_id: 43160[/import]