How do you draw a single pixel line?
How do you draw a single pixel line?
- Subject: How do you draw a single pixel line?
- From: Paul Fox <email@hidden>
- Date: Wed, 14 Aug 2002 23:06:58 +0000
Trying to tidy up my app...
How does one draw a single pixel line?
Specifically, I know about anti-aliasing and how to draw a
1-pixel wide line if the line is purely horizontal or vertical
(add 0.5 to the x,y co-ords etc). But what if I have a diagonal line?
If I turn off anti-aliasing a pure diagonal line is 3-4 pixels wide
(all of the same color).
Is this a simple maths geometry question or is it more than that?
thanks
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.