Well for imageRect you’re loading in a graphic that is X x Y pixels in size. By default, these graphics are assuming an iPhone 3ish graphics scale (320x480). The iPad,while not a retina display is 1024x768, so Corona scales your graphics up to fit the iPad’s scale.
When you rez-up a graphic 2X, text is going to blur. This is why display.newImageRect() is smart enough if you provide the same graphic, double sized with an @2x suffix on the image name, it will use the higher resolution graphic on iPhone4’s and iPads.
Example, you have a button that says “Play” called “playbtn.png”. Its a 64x48 pixel PNG image. If you only provide that one image, Corona is going to upscale it to 128x96 pixels and that process softens the text.
If you create a second button that is 128x96 is size in addition to the smaller version, and name it “playbtn@2x.png”, then display.newImageRect will opt to use the higher resolution graphic and things will look better.
Your config.lua has to have some information for it to use the @2x image. Here is my default config.lua
if system.getInfo("model") ~= "iPad" then
application =
{
content =
{
width = 320,
height = 480,
scale = "letterbox",
imageSuffix =
{
["@2x"] = 2,
},
},
}
else
application =
{
content =
{
width = 384,
height = 512,
scale = "letterbox",
imageSuffix =
{
["@2x"] = 2,
},
},
}
end
[import]uid: 19626 topic_id: 16743 reply_id: 62688[/import]