Adding an image(png) and it looks weird.

I've inserted an image (png) into my application but they all get disorted. Like this image of the appstore icon: http://www.urme.com/corona-image-dump.png

All images I insert looks like this, they get an extra pixel at the top and left.

The only workaround I've found is to add 2 transparent pixels around all my images.

Why does this happen?

My code for inserting the image:

1
local storeLink_ico = display.newImageRect("assets/icon-appstore.png", 33, 33);

you need to use images with even pixel sixes, like 34,34 as otherwise corona is trying to position the centre of the image at 16.5 px.

whats the original dimension of the image ?

33 by 33 it appears :P

And yeah - as Matthew said, do even numbers. Resizing that to 32x32 or 34x34 will fix it right up.

Peach :)

Thanks will try it!

views:1467 update:2011/10/11 15:24:38
corona forums © 2003-2011