[Resolved] Can't get retina graphics to appear anywhere!

(I’m talking new iPad only here.)

Config.lua:

[code]application = {

content = {
width = 768,
height = 1024,
scale = “letterbox”,

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

}
[/code]

Two files:

background.png (1024x768)
background@2x.png (2048x1536)

I’ve added squiggly lines to background@2x.png so I’ll know for certain when I’m looking at that version.

Windows and Mac Corona simulator set for iPad Retina. Neither simulator ever shows the @2x version of the picture… just the smaller one.

Compiled and put on new iPad… same results. It never shows the @2x version.

What am I missing?

Thanks…
[import]uid: 5540 topic_id: 25316 reply_id: 325316[/import]

What code are you using to display the graphic?

Mark [import]uid: 117098 topic_id: 25316 reply_id: 102261[/import]

backgroundimage = display.newImage("background.png") backgroundimage:setReferencePoint(display.TopLeftReferencePoint)

Thanks!
[import]uid: 5540 topic_id: 25316 reply_id: 102262[/import]

Doh!

“Note: display.newImageRect should be used to load images when Dynamic Scaling is enabled, instead of display.newImage.”

Never mind!

Thanks… [import]uid: 5540 topic_id: 25316 reply_id: 102263[/import]

Yeah, I was going to send you this code to use instead but you probably already have it.

[lua]backgroundimage = display.newImageRect(“background.png”,768,1024)
backgroundimage:setReferencePoint(display.TopLeftReferencePoint)
backgroundimage.x = 0; backgroundimage.y = 0[/lua]

Mark [import]uid: 117098 topic_id: 25316 reply_id: 102274[/import]

Actually, that’s very helpful as I was about to start looking around the forums for examples of what exactly I’m supposed to do! Thank you!

One comment though… in order to get your example to work I had to switch the 768 and the 1024. Now it works perfectly and I’m seeing the retina graphics. Thanks!
[import]uid: 5540 topic_id: 25316 reply_id: 102289[/import]

You’re welcome. My code was for portrait mode, you must be using landscape.

Mark [import]uid: 117098 topic_id: 25316 reply_id: 102294[/import]

Ah, I was wondering about that! My game is landscape only so I’ve had no experience with portrait yet.

Thanks again!
[import]uid: 5540 topic_id: 25316 reply_id: 102313[/import]