We have already received several months we received Reiner Knizia Money. This is done very well, and therefore we update it, as time permits. However, one thing continues to bother me. I could never get my layered cards to prevent aliases.
Here is an example:

Cards that lie straight are very clean, but whenever they are angled, the black lines around the cards become jagged. I tried this depending on both lines implicit to the design and the lines drawn through drawRect :, and they both do the same. I tried edgeAntiAliasingMask and I can not say anything as far as I can tell. I tried masksToBounds for sublayers set to NO and YES.
Right now, my map is configured as CALayer, which has sub-CALayers for the front and back, as well as for several other things, such as a lightning mask and a dimming mask. Here are some code snippets:
CArdLayer *theCardLayer = [CArdLayer layer]; theCardLayer.edgeAntialiasingMask = kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge; theCardLayer.front = [CALayer layer]; theCardLayer.front.edgeAntialiasingMask = kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge; theCardLayer.front.bounds = theCardLayer.bounds; theCardLayer.front.masksToBounds = YES; theCardLayer.front.contents = (id)[cardDrawing CGImage]; [theCardLayer addSublayer:theCardLayer.front];
Etc ...
Any ideas on how to make cards really anti-aliases?
iphone core-animation
Shannon A. Mar 17 '10 at 20:29 2010-03-17 20:29
source share