Displaying Images

Hi,
I’m encountering a problem where the images I make in pixelmator (cheap version of photoshop) display at a different size than what I export them to. I’ve tried opening them in the iPhone 4 window and then they display correctly. Is there something im missing about the dimensions of the default iPhone Simulator view??

Heres my code for inserting the image:

local background = display.newImage(“controlbar.png”)
menuGroup:insert(background)

*I am using it in landscape not portrait

Thanks!! [import]uid: 123067 topic_id: 22049 reply_id: 322049[/import]

also, I am using director. That is why I inserted it into the menuGroup [import]uid: 123067 topic_id: 22049 reply_id: 87597[/import]

How is the size different? Is it smaller? Larger? Is this in the iPhone or iPad simulator?

Details, please.

Peach :slight_smile: [import]uid: 52491 topic_id: 22049 reply_id: 87613[/import]

It is smaller and is in the iPhone Simulator [import]uid: 123067 topic_id: 22049 reply_id: 87618[/import]

What screen size have you used in the config.lua file?
Is your iPhone a 4S with high-res screen, and you are using the standard iPhone simulator?

[import]uid: 108660 topic_id: 22049 reply_id: 87638[/import]

The image is automatically being downsized - you can avoid it by using display.newImageRect() rather than display.newImage().

That’s my guess, anyway :wink: [import]uid: 52491 topic_id: 22049 reply_id: 87641[/import]

That was it, thanks! Is there any way to make them not be automatically downsized? [import]uid: 123067 topic_id: 22049 reply_id: 87691[/import]