On Wed, 22 Dec 2010 10:09:04 +1000, Gideon King said:
>I am drawing some CALayers, and use code like what I have below so I can draw
>exactly on pixels.
Your asking this question this way, and your use of ".5" in your code, makes me
want to riff on the distinction between points and pixels. Exp
Yeah, that crossed my mind too, and I thought I had tried that, but I have just
gone back through my code and found that there was a parent layer where I
hadn't set it to an integral frame. I fixed that, and it's now working
perfectly - looks so much better! Thanks for triggering me to look agai
On Dec 21, 2010, at 4:09 PM, Gideon King wrote:
> When I draw it in my CALayer drawing code, it's not always pixel aligned.
You need to make sure the layer is aligned correctly too. The anchor point by
default is {0.5, 0.5}. If you place an oddly-sized layer on X.0 coordinate,
it'll be unaligne
I am drawing some CALayers, and use code like what I have below so I can draw
exactly on pixels.
When I draw it in my CALayer drawing code, it's not always pixel aligned. It's
certainly better than if I had done no rounding, but still it is not correct.
Is there something I'm not doing right? W