Re: Fuzzy Lines
Re: Fuzzy Lines
- Subject: Re: Fuzzy Lines
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 9 Oct 2001 00:19:07 -0700
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.
References: | |
| >Fuzzy Lines (From: Charles Jolley <email@hidden>) |