Fixing dark borders sprites on iPhone
I ran into this issue a couple hours ago working on the iPhone sdk: See the darker borders around the image? It’s a png image and that’s was supposed to be a gradient of alpha. So why am I getting this strange stuff around it? Well that’s because that alpha isn’t 0 or 1 or 0 or 255. The first thing I found out is that XCode grabs the png images and multiplies the RGB component with the alpha. So you can understand now why only 0 or 1 works right? Everything in between get’s changed. This is why Apple recommends using PNG over JPGS, although they consume more space they are altered for speed. ...