To also add a bit to my previous post, with the different resolutions it stretches the images to match. So, if your original resolution is 320x480 and you have a picture that is 50x50 in that screen, then going to a phone where the resolution is 640x960 your picture will automatically be stretched to 100x100.
This does mean that you experience a loss of precision though, so the idea is that you add multiple versions of your picture in say, 50x50, 100x100, 250x250. That way, when you go to the higher resolutions it’ll pick the most optimal image to stretch, thus the least amount of precision loss.
To achieve this, in the build/configure(can’t remember and not near my work comp at the moment), you set up the different size tags, which can pretty much be anything, so you could say @medium, @large etc I believe, then as long as you append those tags to the end of the filename and set the multiplication amount (theres a correlating number there).
Code would look something like this
imageSuffix =
{
["@medium"] = 2,
["@large"] = 5,
}
file names would be img.png, img@medium.png, img@large.png
To make clear those numbers, original image: 50pixels
img@medium.png: 100 pixels (2 x original)
img@large.png: 250 pixels (5 x original)
As you can see, the numbers are the multiplications from the original image.
I think that covers everything, hopefully it helps.
Jessica Newton
Lead Developer - Rose Covenant [import]uid: 168562 topic_id: 32120 reply_id: 127968[/import]