iOS: Antialiasing fail (PNG in CALayer)
I'm attempting to draw this image on screen: This is the code: CALayer* dullLayer = [CALayer layer]; { dullLayer.frame = CGRectMake(0,0,BUTTON_SIZE,BUTTON_SIZE); dullLayer.position = CGPointFromPoint2D( btnCenter ); dullLayer.opacity = topQuadrant ? 1.0 : 0.5; [wheelLayer addSublayer: dullLayer]; } UIImage* test = [UIImage imageNamed: @"OuterButton_Dull.png"]; dullLayer.contents = (id) [test CGImage]; This is what I get: What gives? Why are the edges so jagged? Contrast this with the Roman numeral images that have been composited to screen in exactly the same way. I have tried dullLayer