Re: Fuzzy Lines
Re: Fuzzy Lines
- Subject: Re: Fuzzy Lines
- From: Charles Jolley <email@hidden>
- Date: Tue, 9 Oct 2001 07:47:21 -0500
Thanks to those that answered this. The lines draw perfectly now!
Cheers,
-Charles
On Tuesday, October 9, 2001, at 02:19 AM, John C. Randolph wrote:
On Tuesday, October 9, 2001, at 12:09 AM, Charles Jolley wrote:
Ok, this is a simple problem...but I can't seem to find an answer. I
am trying to draw a single pixel horizontal line. Sometimes,
depending on where it is drawn on the screen, it is a crisp single
pixel line other times it is very fuzzy.
Any ideas? How do I guarantee that the line will always draw crisp?
Draw it from the centers of the pixels. A line from (10.0, 10.0) to
(20.0, 10.0) lands exactly between the pixels. A line from (10.0,
10.5) to (20.0, 10.5) runs through the center of the pixels.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him
with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev