2013年3月8日星期五

Anti-aliasing 反锯齿


The edges of CoreAnimation layers aren't antialised by default on iOS. However, there is a key that you can set in Info.plist that enables antialiasing of the edges: UIViewEdgeAntialiasing.
If you don't want the performance overhead of enabling this option, a work-around is to add a 1px transparent border around the edge of the image. This means that the 'edges' of the image are no longer on the edge, so don't need special treatment!

没有评论:

发表评论