Re: CALayer unwanted blurring

2009-01-19 Thread Joe Wildish
Many thanks David, this seems to have solved my problem! Regards, -Joe On 19 Jan 2009, at 18:21, David Duncan wrote: Your suffering from the same problem as above. The frame origin is not what matters, but rather the layer's position (all aspects of the frame are synthesized from other prop

Re: CALayer unwanted blurring

2009-01-19 Thread Matt Long
How very interesting... I wanted to confirm this so I wrote a little code. Here's an image of the results. http://cimgf.com/files/BlurryLayer.png And here's the Xcode project: http://cimgf.com/files/BlurryLayer.zip Thanks for pointing that out David. -Matt On Jan 19, 2009, at 11:21 AM,

Re: CALayer unwanted blurring

2009-01-19 Thread Gustavo Pizano
Hello, I had similar problem when making a layer rotation over the z axis, so if I understood good, if I Have an even Width/Height of the layer, I should reposition it after the rotation on a pixel, and if I have an odd Width/Height, then in a half pixel?. Am I right, maybe I can apply this

Re: CALayer unwanted blurring

2009-01-19 Thread David Duncan
On Jan 17, 2009, at 4:30 PM, Joe Wildish wrote: Anyway, I did find a post on this list that mentions a similar problem (http://www.cocoabuilder.com/archive/message/cocoa/2008/12/13/225352 ). However, in my case I am not applying any transforms to the layer hierarchy, and I am also ensuring t

Re: CALayer unwanted blurring

2009-01-18 Thread Matt Long
Joe, Can you post some code? We can't really know what might be the cause without it. Thanks. -Matt On Jan 17, 2009, at 5:30 PM, Joe Wildish wrote: I am sub-classing CALayer and experiencing some strange behaviour. Sometimes the content of one of my sub-classes is blurred. I can't fig