On Jun 10, 2007, at 13:33:16, Anders Markussen wrote:
If you want the 1-pixel-wide line to not span several pixels, you
simply add 0.5, so
CGContextMoveToPoint(ctx, 10.5, 4); CGContextAddLineToPoint(ctx,
10.5, 24);
If it is diagonal lines you don't want antialiasing on, there is
always CGContextSetShouldAntialias.
If I remember correctly, it's been pointed out before that adding 0.5
won't always work, like when 1 pixel does not equal 1 screen pixel.
Scalable UI or future hi-res displays, that sort of thing. That's why
I always prefer to turn off antialiasing when I need to do this.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden