I've created some avatars from vector artwork and saved them as transparent PNGs. If I place the PNGs in interf开发者_如何学运维ace builder, the quality is perfect. When I place them using code, the edges are horribly jagged, as if the AA has been removed, yet it's the same image. Is there any way to place them with code and maintain nice smooth edges?
I've attached a screenshot below with the iphone ver on the right.
Thanks,
Chris
Apple compresses pngs
using a special optimization formula. It is possible that this formula is causing your images to alter from the original. If you notice a difference that you cannot live with, turn off the optimization by going into your target
's info panel and unchecking the Compress PNG files
option under the build
tab.
I have the same experience with this kind of situation. Also when I change the hardware to iphone 4 it seems to be really good. so my suggestion to u is that unless u transfer ur app to iphone dont relay on the simulator. You cannot really tell what will be the result on iphone by referring to simulator.
so dont panic, just check the image on iphone first before you get to any conclusion.
精彩评论